Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.001634/0.001634, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.00206/0.00206, allocations: 215.2 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.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.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.05 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2455, allocations: 49.15 MB / 396.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02008/0.2656, allocations: 21.08 MB / 417.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03225/0.2978, allocations: 18.65 MB / 436.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006895/0.3047, allocations: 273 kB / 436.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006053/0.3108, allocations: 1.633 MB / 438 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01309/0.3239, allocations: 3.255 MB / 441.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006361/0.3302, allocations: 1.546 MB / 442.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0202/0.3504, allocations: 12.47 MB / 455.2 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.3519, allocations: 0.4888 MB / 455.7 MB, free: 7.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003221/0.3551, allocations: 2.003 MB / 457.7 MB, free: 5.496 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003211/0.3583, allocations: 1.971 MB / 459.7 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006717/0.359, allocations: 136 kB / 459.8 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004542/0.3635, allocations: 1.152 MB / 461 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009193/0.3644, allocations: 0.5971 MB / 461.6 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00299/0.3674, allocations: 1.944 MB / 463.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.3776, allocations: 6.788 MB / 470.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3777, allocations: 0 / 470.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3777, allocations: 0 / 470.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001538/0.3778, allocations: 4 kB / 470.3 MB, free: 8.844 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.0111/0.3889, allocations: 6.894 MB / 477.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.389, allocations: 11.98 kB / 477.2 MB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002159/0.3892, allocations: 161.2 kB / 477.4 MB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009751/0.3902, allocations: 0.7919 MB / 478.2 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007946/0.3981, allocations: 4.403 MB / 482.6 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.3982, allocations: 66 kB / 482.6 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002582/0.3984, allocations: 99.91 kB / 482.7 MB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002488/0.4009, allocations: 1.309 MB / 484.1 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.4009, allocations: 0 / 484.1 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.4011, allocations: 43.94 kB / 484.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.786e-05/0.4011, allocations: 43.91 kB / 484.1 MB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/0.4039, allocations: 1.492 MB / 485.6 MB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.4151, allocations: 5.302 MB / 490.9 MB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.4169, allocations: 0.8756 MB / 491.8 MB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.4185, allocations: 1.063 MB / 492.9 MB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.052/0.4705, allocations: 27.11 MB / 0.5078 GB, free: 6.098 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.4717, allocations: 0.5606 MB / 0.5083 GB, free: 5.527 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.176e-06/0.4717, allocations: 0 / 0.5083 GB, free: 5.527 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003868/0.4755, allocations: 1.919 MB / 0.5102 GB, free: 3.598 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.4756, allocations: 60.06 kB / 0.5103 GB, free: 3.527 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009263/0.4849, allocations: 5.678 MB / 0.5158 GB, free: 13.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.485, allocations: 37.7 kB / 0.5159 GB, free: 13.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003226/0.4883, allocations: 2.953 MB / 0.5187 GB, free: 10.87 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005473/0.4888, allocations: 317.4 kB / 0.519 GB, free: 10.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008067/0.4896, allocations: 431 kB / 0.5195 GB, free: 10.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.4898, allocations: 305.1 kB / 0.5197 GB, free: 9.832 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009809/0.4907, allocations: 399.8 kB / 0.5201 GB, free: 9.441 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.4923, allocations: 1.091 MB / 0.5212 GB, free: 8.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.4949, allocations: 1.615 MB / 0.5228 GB, free: 6.074 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.022e-05/0.4949, allocations: 12 kB / 0.5228 GB, free: 6.062 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004109/0.4991, allocations: 2.234 MB / 0.525 GB, free: 3.816 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.4991, allocations: 20.25 kB / 0.525 GB, free: 3.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000242/0.4993, allocations: 164 kB / 0.5251 GB, free: 3.637 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.547e-05/0.4994, allocations: 36 kB / 0.5252 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.5006, allocations: 359.4 kB / 0.5255 GB, free: 3.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.807e-05/0.5007, allocations: 47.8 kB / 0.5256 GB, free: 3.203 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.5027, allocations: 194.6 kB / 0.5257 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.5029, allocations: 132 kB / 0.5259 GB, free: 2.883 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001543/0.5044, allocations: 0.7081 MB / 0.5266 GB, free: 2.164 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001211/0.5057, allocations: 0.757 MB / 0.5273 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/0.5108, allocations: 2.167 MB / 0.5294 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.5108, allocations: 8 kB / 0.5294 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5108, allocations: 4 kB / 0.5294 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.5108, allocations: 7.922 kB / 0.5294 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007342/0.5182, allocations: 3.518 MB / 0.5329 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002058/0.5184, allocations: 140 kB / 0.533 GB, free: 11.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000806/0.5192, allocations: 151.8 kB / 0.5332 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.5192, allocations: 4 kB / 0.5332 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.5193, allocations: 68 kB / 0.5332 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.5193, allocations: 8 kB / 0.5332 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5193, allocations: 0 / 0.5332 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00403/0.5233, allocations: 2.198 MB / 0.5354 GB, free: 9.035 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/0.5255, allocations: 0.7858 MB / 0.5361 GB, free: 8.238 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000903/0.5264, allocations: 15.94 kB / 0.5362 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.5279, allocations: 39.95 kB / 0.5362 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.5281, allocations: 96.56 kB / 0.5363 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/0.5282, allocations: 71.98 kB / 0.5364 GB, free: 8.016 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006403/0.5346, allocations: 3.629 MB / 0.5399 GB, free: 4.418 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5346, allocations: 4 kB / 0.5399 GB, free: 4.414 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002817/0.5374, allocations: 1.096 MB / 0.541 GB, free: 3.316 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006843/0.5443, allocations: 3.861 MB / 0.5447 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002854/0.5471, allocations: 1.365 MB / 0.5461 GB, free: 14.01 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5471, allocations: 1.312 kB / 0.5461 GB, free: 14.01 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.5484, allocations: 0.7399 MB / 0.5468 GB, free: 13.22 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005184/0.5536, allocations: 0.9841 MB / 0.5478 GB, free: 12.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2264/0.78, allocations: 30.72 MB / 0.5778 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.7814, allocations: 2.112 MB / 0.5798 GB, free: 142.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001777/0.7832, allocations: 0.6858 MB / 0.5805 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/0.785, allocations: 2.414 MB / 0.5829 GB, free: 140.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.313e-06/0.785, allocations: 0 / 0.5829 GB, free: 140.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1589/0.9439, allocations: 117.8 MB / 0.6979 GB, free: 23.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.65/24.59, allocations: 8 kB / 0.6979 GB, free: 23.29 MB / 478.1 MB " [Timeout remaining time 635] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 28.569942513946444]