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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 120 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 190.9 kB / 21.39 MB, free: 1.672 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.465/1.465, allocations: 207.6 MB / 231.8 MB, free: 4.102 MB / 174.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.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.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.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.001673/0.001673, allocations: 51.91 kB / 342.2 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09752, allocations: 49.13 MB / 391.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02553/0.1231, allocations: 25.43 MB / 416.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02963/0.1527, allocations: 21.39 MB / 438.2 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005738/0.1584, allocations: 178.5 kB / 438.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005149/0.1636, allocations: 1.73 MB / 440.1 MB, free: 7.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01149/0.1751, allocations: 3.203 MB / 443.3 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005645/0.1807, allocations: 1.572 MB / 444.9 MB, free: 3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02268/0.2034, allocations: 12.44 MB / 457.3 MB, free: 6.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001909/0.2053, allocations: 0.5118 MB / 457.8 MB, free: 5.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.2086, allocations: 1.917 MB / 459.7 MB, free: 4.047 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002977/0.2116, allocations: 2.053 MB / 461.8 MB, free: 1.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004077/0.212, allocations: 136 kB / 461.9 MB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00443/0.2164, allocations: 1.222 MB / 463.2 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006777/0.2171, allocations: 0.6049 MB / 463.8 MB, free: 20 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2024/0.4195, allocations: 2.635 MB / 466.4 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01267/0.4322, allocations: 6.707 MB / 473.1 MB, free: 17.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.4322, allocations: 0 / 473.1 MB, free: 17.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.598e-06/0.4322, allocations: 3.844 kB / 473.1 MB, free: 17.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000315/0.4325, allocations: 0 / 473.1 MB, free: 17.03 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.01396/0.4465, allocations: 6.977 MB / 480.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4465, allocations: 9.375 kB / 480.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002148/0.4467, allocations: 159.9 kB / 480.2 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/0.4482, allocations: 0.7838 MB / 481 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007517/0.4557, allocations: 4.701 MB / 485.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.633e-05/0.4558, allocations: 67.25 kB / 485.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.456, allocations: 99.19 kB / 485.9 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.4583, allocations: 1.296 MB / 487.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.4583, allocations: 0 / 487.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.4584, allocations: 37.62 kB / 487.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.715e-05/0.4585, allocations: 43.88 kB / 487.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.4608, allocations: 1.488 MB / 488.8 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01104/0.4718, allocations: 5.643 MB / 494.4 MB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.4733, allocations: 0.8821 MB / 495.3 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.4745, allocations: 1.055 MB / 496.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0641/0.5386, allocations: 59.95 MB / 0.5432 GB, free: 9.598 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.5398, allocations: 0.563 MB / 0.5438 GB, free: 9.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.737e-06/0.5398, allocations: 0 / 0.5438 GB, free: 9.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.004625/0.5444, allocations: 1.91 MB / 0.5457 GB, free: 7.109 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.5444, allocations: 67.95 kB / 0.5457 GB, free: 7.031 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008567/0.553, allocations: 5.628 MB / 0.5512 GB, free: 1.434 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000245/0.5533, allocations: 41.7 kB / 0.5513 GB, free: 1.387 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002817/0.5561, allocations: 2.953 MB / 0.5541 GB, free: 14.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004508/0.5565, allocations: 316.4 kB / 0.5544 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006047/0.5571, allocations: 430.3 kB / 0.5549 GB, free: 13.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5573, allocations: 305.1 kB / 0.5551 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000857/0.5581, allocations: 399.8 kB / 0.5555 GB, free: 13.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.5595, allocations: 1.085 MB / 0.5566 GB, free: 11.61 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002365/0.5619, allocations: 1.614 MB / 0.5582 GB, free: 9.777 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.411e-05/0.5619, allocations: 8 kB / 0.5582 GB, free: 9.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004273/0.5662, allocations: 2.255 MB / 0.5604 GB, free: 7.652 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.5662, allocations: 16 kB / 0.5604 GB, free: 7.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002399/0.5664, allocations: 164 kB / 0.5605 GB, free: 7.477 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.809e-05/0.5665, allocations: 34.62 kB / 0.5606 GB, free: 7.445 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.5676, allocations: 362.4 kB / 0.5609 GB, free: 7.117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.166e-05/0.5677, allocations: 45.55 kB / 0.561 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/0.5702, allocations: 194.6 kB / 0.5612 GB, free: 6.891 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/0.5704, allocations: 124 kB / 0.5613 GB, free: 6.77 MB / 462.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.001581/0.572, allocations: 0.7249 MB / 0.562 GB, free: 6.062 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001174/0.5731, allocations: 0.7608 MB / 0.5627 GB, free: 5.297 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004612/0.5778, allocations: 2.161 MB / 0.5648 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.5778, allocations: 8 kB / 0.5648 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.5778, allocations: 0 / 0.5648 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.5778, allocations: 3.984 kB / 0.5648 GB, free: 3.125 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007322/0.5851, allocations: 3.631 MB / 0.5684 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002083/0.5853, allocations: 140 kB / 0.5685 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007256/0.586, allocations: 152.1 kB / 0.5687 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-06/0.586, allocations: 7.188 kB / 0.5687 GB, free: 15.17 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.97e-05/0.5861, allocations: 60 kB / 0.5687 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.5862, allocations: 7.938 kB / 0.5687 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.5862, allocations: 0 / 0.5687 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004023/0.5902, allocations: 2.199 MB / 0.5709 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002702/0.5929, allocations: 0.8628 MB / 0.5717 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00094/0.5938, allocations: 16 kB / 0.5717 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.595, allocations: 35.95 kB / 0.5718 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.5952, allocations: 100.6 kB / 0.5719 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/0.5953, allocations: 71.98 kB / 0.5719 GB, free: 11.78 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006191/0.6015, allocations: 3.637 MB / 0.5755 GB, free: 8.176 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6015, allocations: 0 / 0.5755 GB, free: 8.176 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003556/0.6051, allocations: 1.092 MB / 0.5766 GB, free: 7.082 MB / 478.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.006027/0.6111, allocations: 3.854 MB / 0.5803 GB, free: 3.426 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.6137, allocations: 1.364 MB / 0.5817 GB, free: 2.094 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6137, allocations: 0 / 0.5817 GB, free: 2.094 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.6149, allocations: 0.7405 MB / 0.5824 GB, free: 1.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004477/0.6193, allocations: 0.9967 MB / 0.5834 GB, free: 332 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05284/0.6722, allocations: 30.76 MB / 0.6134 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/0.6744, allocations: 2.6 MB / 0.6159 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00215/0.6766, allocations: 0.6927 MB / 0.6166 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003427/0.68, allocations: 2.405 MB / 0.619 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of SimCode: time 2.916e-06/0.68, allocations: 0 / 0.619 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/1.063, allocations: 112.1 MB / 0.7284 GB, free: 144 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.32/26.38, allocations: 11.83 kB / 0.7285 GB, free: 144 MB / 0.5294 GB " [Timeout remaining time 633] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 30.693749954923987]