Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 43.92 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2622, allocations: 53.36 MB / 431.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02581/0.288, allocations: 19.33 MB / 451.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.3039, allocations: 6.371 MB / 457.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005091/0.309, allocations: 174.9 kB / 457.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005464/0.3144, allocations: 1.502 MB / 459.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009204/0.3236, allocations: 2.124 MB / 461.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00465/0.3283, allocations: 1.32 MB / 462.7 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.3403, allocations: 6.575 MB / 469.3 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005734/0.346, allocations: 3.143 MB / 472.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006076/0.3521, allocations: 3.1 MB / 475.5 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007831/0.36, allocations: 3.74 MB / 479.3 MB, free: 7.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002767/0.3627, allocations: 0.8164 MB / 480.1 MB, free: 6.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.3669, allocations: 1.117 MB / 481.2 MB, free: 5.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003017/0.3699, allocations: 2.049 MB / 483.2 MB, free: 3.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005844/0.3757, allocations: 2.836 MB / 486.1 MB, free: 188 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01755/0.3933, allocations: 10.93 MB / 497 MB, free: 5.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3933, allocations: 0 / 497 MB, free: 5.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3933, allocations: 3.938 kB / 497 MB, free: 5.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003967/0.3937, allocations: 4 kB / 497 MB, free: 5.211 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02429/0.418, allocations: 7.037 MB / 0.4922 GB, free: 14.1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.418, allocations: 12.02 kB / 0.4923 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001897/0.4182, allocations: 143 kB / 0.4924 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002369/0.4206, allocations: 0.729 MB / 0.4931 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005887/0.4265, allocations: 1.082 MB / 0.4942 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008907/0.4354, allocations: 3.702 MB / 0.4978 GB, free: 8.355 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004286/0.4358, allocations: 402.8 kB / 0.4982 GB, free: 7.961 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.4375, allocations: 0.535 MB / 0.4987 GB, free: 7.426 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01542/0.4529, allocations: 7.293 MB / 0.5058 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001621/0.453, allocations: 8 kB / 0.5058 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006071/0.4536, allocations: 219.9 kB / 0.506 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002658/0.4539, allocations: 262.6 kB / 0.5063 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.4658, allocations: 5.96 MB / 0.5121 GB, free: 9.555 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03499/0.5008, allocations: 19.97 MB / 0.5316 GB, free: 5.051 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006435/0.5072, allocations: 3.712 MB / 0.5352 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2318/0.739, allocations: 2.079 MB / 0.5372 GB, free: 97.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.7504, allocations: 5.281 MB / 0.5424 GB, free: 96.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.7504, allocations: 58.31 kB / 0.5425 GB, free: 96.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 5.269e-06/0.7504, allocations: 0 / 0.5425 GB, free: 96.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01904/0.7694, allocations: 10.25 MB / 0.5525 GB, free: 92.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.7695, allocations: 81.41 kB / 0.5525 GB, free: 92.37 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003691/0.7732, allocations: 3.166 MB / 0.5556 GB, free: 89.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002238/0.7734, allocations: 65.7 kB / 0.5557 GB, free: 89.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.7746, allocations: 2.585 MB / 0.5582 GB, free: 87.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004713/0.7751, allocations: 0.8694 MB / 0.5591 GB, free: 86.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006796/0.7757, allocations: 0.563 MB / 0.5596 GB, free: 86.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.662e-05/0.7758, allocations: 305.1 kB / 0.5599 GB, free: 86.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.7774, allocations: 1.335 MB / 0.5612 GB, free: 84.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.7793, allocations: 2.368 MB / 0.5635 GB, free: 82.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003663/0.7829, allocations: 3.921 MB / 0.5674 GB, free: 77.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/0.783, allocations: 8 kB / 0.5674 GB, free: 77.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.005956/0.7889, allocations: 4.58 MB / 0.5718 GB, free: 72.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.7889, allocations: 16.66 kB / 0.5719 GB, free: 72.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/0.789, allocations: 35.44 kB / 0.5719 GB, free: 72.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009948/0.79, allocations: 0.5484 MB / 0.5724 GB, free: 72.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/0.7923, allocations: 0.7371 MB / 0.5731 GB, free: 71.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006115/0.7984, allocations: 9.876 MB / 0.5828 GB, free: 61.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/0.801, allocations: 191.8 kB / 0.583 GB, free: 61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.8012, allocations: 140 kB / 0.5831 GB, free: 60.86 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (377): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002045/0.8032, allocations: 1.571 MB / 0.5846 GB, free: 59.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/0.8038, allocations: 369.6 kB / 0.585 GB, free: 58.92 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005239/0.809, allocations: 3.832 MB / 0.5887 GB, free: 55.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.809, allocations: 24 kB / 0.5888 GB, free: 55.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.809, allocations: 8 kB / 0.5888 GB, free: 55.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.785e-05/0.809, allocations: 15.89 kB / 0.5888 GB, free: 54.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.8202, allocations: 8.23 MB / 0.5968 GB, free: 46.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.8202, allocations: 4 kB / 0.5968 GB, free: 46.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.8217, allocations: 403.4 kB / 0.5972 GB, free: 46.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.8234, allocations: 0.7597 MB / 0.5979 GB, free: 45.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/0.8235, allocations: 67.97 kB / 0.598 GB, free: 45.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.8342, allocations: 15.96 MB / 0.6136 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.8342, allocations: 12.03 kB / 0.6136 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008269/0.8425, allocations: 5.64 MB / 0.6191 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002276/0.8448, allocations: 0.638 MB / 0.6197 GB, free: 22.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008353/0.8456, allocations: 64.11 kB / 0.6198 GB, free: 22.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/0.8473, allocations: 139.9 kB / 0.6199 GB, free: 22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/0.8478, allocations: 193.5 kB / 0.6201 GB, free: 21.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/0.8479, allocations: 71.97 kB / 0.6202 GB, free: 21.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003471/0.8514, allocations: 2.139 MB / 0.6223 GB, free: 19.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.8514, allocations: 7.938 kB / 0.6223 GB, free: 19.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004347/0.8557, allocations: 0.9999 MB / 0.6233 GB, free: 18.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008067/0.8638, allocations: 6.347 MB / 0.6295 GB, free: 12.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005712/0.8695, allocations: 3.866 MB / 0.6332 GB, free: 8.223 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.8695, allocations: 4 kB / 0.6332 GB, free: 8.219 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003413/0.8729, allocations: 2.666 MB / 0.6358 GB, free: 5.449 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004379/0.8773, allocations: 0.9652 MB / 0.6368 GB, free: 4.504 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06492/0.9422, allocations: 35.41 MB / 0.6714 GB, free: 15.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0059/0.9481, allocations: 2.914 MB / 0.6742 GB, free: 12.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003/0.9511, allocations: 0.7996 MB / 0.675 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003408/0.9545, allocations: 2.128 MB / 0.6771 GB, free: 9.867 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/0.9545, allocations: 3.938 kB / 0.6771 GB, free: 9.863 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3857/1.34, allocations: 94.29 MB / 0.7692 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.91/19.25, allocations: 19.05 kB / 0.7692 GB, free: 159.1 MB / 0.5294 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 29.904247959027998]