Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.001151, allocations: 109.5 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 192 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07625, allocations: 46.61 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.171/0.2473, allocations: 21.68 MB / 396.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.2608, allocations: 6.44 MB / 402.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004107/0.2649, allocations: 120.4 kB / 402.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004739/0.2697, allocations: 1.485 MB / 404.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007514/0.2772, allocations: 2.034 MB / 406.4 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003955/0.2812, allocations: 1.307 MB / 407.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00922/0.2904, allocations: 6.528 MB / 414.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008856/0.2993, allocations: 5.504 MB / 419.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005421/0.3048, allocations: 2.999 MB / 422.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006476/0.3113, allocations: 3.557 MB / 426.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002106/0.3134, allocations: 0.8164 MB / 427.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003511/0.3169, allocations: 1.113 MB / 428.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002718/0.3197, allocations: 2.018 MB / 430.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005911/0.3256, allocations: 3.539 MB / 433.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01265/0.3383, allocations: 10.78 MB / 444.6 MB, free: 9.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3383, allocations: 4 kB / 444.6 MB, free: 9.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3383, allocations: 0 / 444.6 MB, free: 9.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000304/0.3386, allocations: 0 / 444.6 MB, free: 9.84 MB / 366.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.01825/0.3569, allocations: 6.918 MB / 451.5 MB, free: 2.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3569, allocations: 8.031 kB / 451.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001866/0.3588, allocations: 0.7367 MB / 452.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00558/0.3644, allocations: 1.063 MB / 453.3 MB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00815/0.3726, allocations: 3.516 MB / 456.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004418/0.3731, allocations: 407.1 kB / 457.2 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00173/0.3748, allocations: 0.5271 MB / 457.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/0.3919, allocations: 7.045 MB / 464.8 MB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002388/0.3922, allocations: 19.89 kB / 464.8 MB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/0.3937, allocations: 216 kB / 465 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002978/0.394, allocations: 266.5 kB / 465.3 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.4069, allocations: 5.937 MB / 471.2 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04018/0.4471, allocations: 22.16 MB / 493.4 MB, free: 8.207 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00864/0.4558, allocations: 8.297 MB / 0.4899 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00383/0.4597, allocations: 2.159 MB / 0.492 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.4711, allocations: 6.16 MB / 0.4981 GB, free: 6.559 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.4712, allocations: 68.44 kB / 0.4981 GB, free: 6.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.549e-06/0.4712, allocations: 0 / 0.4981 GB, free: 6.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02264/0.4938, allocations: 11.15 MB / 0.509 GB, free: 11.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.4939, allocations: 77.41 kB / 0.5091 GB, free: 10.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005557/0.4995, allocations: 3.152 MB / 0.5122 GB, free: 7.836 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002538/0.4997, allocations: 61.7 kB / 0.5122 GB, free: 7.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001796/0.5016, allocations: 2.502 MB / 0.5147 GB, free: 5.238 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007716/0.5023, allocations: 0.8279 MB / 0.5155 GB, free: 4.398 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009919/0.5033, allocations: 0.5614 MB / 0.516 GB, free: 3.828 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5034, allocations: 305.1 kB / 0.5163 GB, free: 3.527 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002249/0.5057, allocations: 1.334 MB / 0.5176 GB, free: 2.191 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002895/0.5086, allocations: 2.343 MB / 0.5199 GB, free: 15.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005381/0.514, allocations: 3.92 MB / 0.5237 GB, free: 11.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.622e-05/0.514, allocations: 16 kB / 0.5237 GB, free: 10.99 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007953/0.522, allocations: 4.697 MB / 0.5283 GB, free: 6.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.5221, allocations: 20.66 kB / 0.5283 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.652e-05/0.5221, allocations: 32 kB / 0.5284 GB, free: 6.129 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.5234, allocations: 0.5294 MB / 0.5289 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/0.5261, allocations: 0.7449 MB / 0.5296 GB, free: 4.832 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009044/0.5351, allocations: 10.28 MB / 0.5397 GB, free: 9.852 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/0.5379, allocations: 187.7 kB / 0.5398 GB, free: 9.668 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004298/0.5383, allocations: 140.1 kB / 0.54 GB, free: 9.531 MB / 478.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 (380): * Single equations (assignments): 373 * 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,3,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.002947/0.5413, allocations: 1.571 MB / 0.5415 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008479/0.5421, allocations: 351.7 kB / 0.5418 GB, free: 7.602 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007256/0.5494, allocations: 4.045 MB / 0.5458 GB, free: 3.457 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/0.5494, allocations: 27.98 kB / 0.5458 GB, free: 3.43 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.968e-05/0.5495, allocations: 8 kB / 0.5458 GB, free: 3.422 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.104e-05/0.5495, allocations: 15.89 kB / 0.5458 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.183/0.7326, allocations: 8.959 MB / 0.5546 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.7326, allocations: 3.5 kB / 0.5546 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/0.7344, allocations: 409.5 kB / 0.555 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/0.7365, allocations: 0.7323 MB / 0.5557 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002377/0.7367, allocations: 65.89 kB / 0.5558 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/0.7493, allocations: 16.72 MB / 0.5721 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.7493, allocations: 4.469 kB / 0.5721 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009343/0.7587, allocations: 5.845 MB / 0.5778 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/0.7604, allocations: 0.6961 MB / 0.5785 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004853/0.7609, allocations: 59.61 kB / 0.5785 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.7625, allocations: 141.4 kB / 0.5787 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004374/0.7629, allocations: 180.2 kB / 0.5788 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.7631, allocations: 76.05 kB / 0.5789 GB, free: 128 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003056/0.7661, allocations: 2.127 MB / 0.581 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7661, allocations: 2 kB / 0.581 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003466/0.7696, allocations: 0.9933 MB / 0.582 GB, free: 127.1 MB / 478.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 (201): * Single equations (assignments): 193 * 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,3,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.008304/0.7779, allocations: 6.543 MB / 0.5884 GB, free: 123.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005169/0.7831, allocations: 4.143 MB / 0.5924 GB, free: 122 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.7832, allocations: 3.5 kB / 0.5924 GB, free: 122 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003489/0.7867, allocations: 2.752 MB / 0.5951 GB, free: 120.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004213/0.7909, allocations: 0.9541 MB / 0.596 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04479/0.8357, allocations: 35.46 MB / 0.6307 GB, free: 85.22 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002609/0.8384, allocations: 3.407 MB / 0.634 GB, free: 81.78 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00237/0.8408, allocations: 0.8112 MB / 0.6348 GB, free: 80.96 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001977/0.8428, allocations: 2.104 MB / 0.6368 GB, free: 78.86 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/0.8428, allocations: 0 / 0.6368 GB, free: 78.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1306/0.9733, allocations: 88.95 MB / 0.7237 GB, free: 5.762 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.2/17.17, allocations: 4.938 kB / 0.7237 GB, free: 5.758 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches