Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.001203/0.001203, allocations: 109 kB / 17.15 MB, free: 6.328 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.001301/0.001301, allocations: 198 kB / 18.07 MB, free: 5.434 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.359/1.359, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.001123/0.001123, allocations: 51.92 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1008, allocations: 46.63 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02714/0.128, allocations: 19.95 MB / 346.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.1433, allocations: 5.889 MB / 352.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004648/0.148, allocations: 111.5 kB / 352.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005567/0.1536, allocations: 1.15 MB / 353.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008059/0.1617, allocations: 1.733 MB / 355.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003843/0.1655, allocations: 1.143 MB / 356.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008652/0.1742, allocations: 6.656 MB / 363.3 MB, free: 0 / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007045/0.1813, allocations: 4.479 MB / 367.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003801/0.1851, allocations: 2.358 MB / 370.2 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005033/0.1901, allocations: 3.183 MB / 373.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001988/0.1921, allocations: 476 kB / 373.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003136/0.1953, allocations: 0.773 MB / 374.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002583/0.1979, allocations: 1.6 MB / 376.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005404/0.2033, allocations: 3.005 MB / 379.2 MB, free: 8 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1685/0.3718, allocations: 9.953 MB / 389.2 MB, free: 25.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.3718, allocations: 3.719 kB / 389.2 MB, free: 25.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3718, allocations: 1.469 kB / 389.2 MB, free: 25.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003122/0.3722, allocations: 0 / 389.2 MB, free: 25.05 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01855/0.3907, allocations: 6.578 MB / 395.7 MB, free: 22.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.3908, allocations: 9.656 kB / 395.8 MB, free: 22.46 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001823/0.3926, allocations: 0.7005 MB / 396.5 MB, free: 22.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00479/0.3974, allocations: 1.013 MB / 397.5 MB, free: 21.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006012/0.4034, allocations: 3.271 MB / 400.7 MB, free: 20.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003468/0.4038, allocations: 395.5 kB / 401.1 MB, free: 20.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001235/0.4051, allocations: 0.5074 MB / 401.6 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01501/0.4201, allocations: 6.776 MB / 408.4 MB, free: 16.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001567/0.4203, allocations: 7.812 kB / 408.4 MB, free: 16.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007756/0.4211, allocations: 206 kB / 408.6 MB, free: 16.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000197/0.4213, allocations: 244.6 kB / 408.9 MB, free: 16.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/0.4332, allocations: 5.741 MB / 414.6 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03974/0.473, allocations: 21.1 MB / 435.7 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009412/0.4825, allocations: 8.543 MB / 444.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00397/0.4865, allocations: 2.109 MB / 446.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.499, allocations: 5.942 MB / 452.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.4991, allocations: 56.56 kB / 452.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 4.288e-06/0.4991, allocations: 0 / 452.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02206/0.5212, allocations: 10.26 MB / 462.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.5213, allocations: 73.41 kB / 462.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005935/0.5272, allocations: 2.908 MB / 465.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004788/0.5277, allocations: 65.7 kB / 465.6 MB, free: 9.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001691/0.5294, allocations: 2.352 MB / 468 MB, free: 6.898 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000929/0.5304, allocations: 0.766 MB / 468.8 MB, free: 6.137 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008269/0.5312, allocations: 0.5099 MB / 469.3 MB, free: 5.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.288e-05/0.5313, allocations: 303.9 kB / 469.6 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/0.5334, allocations: 1.271 MB / 470.8 MB, free: 4.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002528/0.536, allocations: 2.181 MB / 473 MB, free: 1.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004695/0.5407, allocations: 3.668 MB / 476.7 MB, free: 13.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/0.5407, allocations: 12 kB / 476.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007756/0.5485, allocations: 4.439 MB / 481.1 MB, free: 9.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.5485, allocations: 19.12 kB / 481.2 MB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-05/0.5486, allocations: 31.98 kB / 481.2 MB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.5498, allocations: 0.5136 MB / 481.7 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/0.5523, allocations: 0.6974 MB / 482.4 MB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009459/0.5618, allocations: 9.338 MB / 491.7 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/0.5657, allocations: 171.8 kB / 491.9 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004385/0.5662, allocations: 132 kB / 492 MB, free: 13.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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,11,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.004073/0.5703, allocations: 1.525 MB / 493.6 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/0.5715, allocations: 316.1 kB / 493.9 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007377/0.5788, allocations: 3.881 MB / 497.7 MB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.5789, allocations: 20 kB / 497.8 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.5789, allocations: 8 kB / 497.8 MB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/0.579, allocations: 7.969 kB / 497.8 MB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01806/0.597, allocations: 8.488 MB / 0.4944 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.5971, allocations: 4 kB / 0.4944 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/0.5987, allocations: 380.9 kB / 0.4948 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/0.6007, allocations: 0.7303 MB / 0.4955 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.6009, allocations: 59.97 kB / 0.4955 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/0.6162, allocations: 15.21 MB / 0.5104 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.6163, allocations: 6.625 kB / 0.5104 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009739/0.6261, allocations: 5.543 MB / 0.5158 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001926/0.628, allocations: 0.6571 MB / 0.5165 GB, free: 7.648 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005617/0.6286, allocations: 55.98 kB / 0.5165 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.6301, allocations: 131.9 kB / 0.5166 GB, free: 7.465 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005252/0.6307, allocations: 171.3 kB / 0.5168 GB, free: 7.301 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.6308, allocations: 67.98 kB / 0.5169 GB, free: 7.234 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003462/0.6343, allocations: 1.963 MB / 0.5188 GB, free: 5.273 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6343, allocations: 0 / 0.5188 GB, free: 5.273 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004362/0.6387, allocations: 0.9298 MB / 0.5197 GB, free: 4.344 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2021/0.8408, allocations: 6.245 MB / 0.5258 GB, free: 145.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005825/0.8467, allocations: 3.956 MB / 0.5296 GB, free: 144.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.8467, allocations: 1.125 kB / 0.5296 GB, free: 144.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003972/0.8507, allocations: 2.656 MB / 0.5322 GB, free: 143.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00459/0.8553, allocations: 0.8072 MB / 0.533 GB, free: 143.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07076/0.9261, allocations: 41.65 MB / 0.5737 GB, free: 109.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004538/0.9307, allocations: 3.297 MB / 0.5769 GB, free: 105.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002987/0.9337, allocations: 0.7578 MB / 0.5777 GB, free: 105 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002557/0.9362, allocations: 1.936 MB / 0.5796 GB, free: 103.1 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9362, allocations: 0 / 0.5796 GB, free: 103.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1739/1.11, allocations: 80.76 MB / 0.6584 GB, free: 22.16 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001353/1.11, allocations: 248.5 kB / 0.6587 GB, free: 21.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.665/4.775, allocations: 0 / 0.6587 GB, free: 21.91 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches