Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001263/0.001263, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001457/0.001457, allocations: 206 kB / 23.73 MB, free: 4.379 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.404/1.404, allocations: 230.6 MB / 257.5 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.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 43.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2313, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02326/0.2546, allocations: 22.24 MB / 453.3 MB, free: 300 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/0.2808, allocations: 19.56 MB / 472.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004155/0.285, allocations: 269.1 kB / 473.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004173/0.2892, allocations: 1.676 MB / 474.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009763/0.2989, allocations: 3.31 MB / 478.1 MB, free: 7.363 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004699/0.3036, allocations: 1.593 MB / 479.7 MB, free: 5.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02001/0.3236, allocations: 12.92 MB / 492.6 MB, free: 8.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.3248, allocations: 0.5043 MB / 493.1 MB, free: 8.281 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003236/0.328, allocations: 2.205 MB / 495.3 MB, free: 6.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002902/0.3309, allocations: 2.103 MB / 497.4 MB, free: 3.949 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003214/0.3312, allocations: 136 kB / 497.6 MB, free: 3.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003484/0.3347, allocations: 1.3 MB / 498.9 MB, free: 2.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006083/0.3353, allocations: 0.5932 MB / 499.5 MB, free: 1.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002192/0.3375, allocations: 1.933 MB / 0.4897 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007679/0.3452, allocations: 6.738 MB / 0.4962 GB, free: 9.203 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.3452, allocations: 4 kB / 0.4962 GB, free: 9.199 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3452, allocations: 0 / 0.4962 GB, free: 9.199 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.335e-05/0.3453, allocations: 0 / 0.4962 GB, free: 9.199 MB / 414.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.009543/0.3548, allocations: 6.851 MB / 0.5029 GB, free: 2.266 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3549, allocations: 8.031 kB / 0.5029 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002096/0.3551, allocations: 161.2 kB / 0.5031 GB, free: 2.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008583/0.3559, allocations: 0.7764 MB / 0.5038 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007155/0.3631, allocations: 4.375 MB / 0.5081 GB, free: 12.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-05/0.3632, allocations: 70 kB / 0.5082 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.3634, allocations: 115.8 kB / 0.5083 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.3657, allocations: 1.297 MB / 0.5096 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.3657, allocations: 0 / 0.5096 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.3658, allocations: 39.94 kB / 0.5096 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.065e-05/0.3659, allocations: 43.97 kB / 0.5096 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/0.3684, allocations: 1.488 MB / 0.5111 GB, free: 9.742 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01004/0.3785, allocations: 5.286 MB / 0.5163 GB, free: 4.383 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.3802, allocations: 0.8718 MB / 0.5171 GB, free: 3.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.3817, allocations: 1.071 MB / 0.5182 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2313/0.613, allocations: 27.06 MB / 0.5446 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008353/0.6138, allocations: 0.5632 MB / 0.5451 GB, free: 102.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.226e-06/0.6138, allocations: 2.906 kB / 0.5451 GB, free: 102.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002623/0.6165, allocations: 1.91 MB / 0.547 GB, free: 101.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.6165, allocations: 67.19 kB / 0.5471 GB, free: 101.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004977/0.6215, allocations: 5.623 MB / 0.5525 GB, free: 96.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.6216, allocations: 49.16 kB / 0.5526 GB, free: 96.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/0.6231, allocations: 2.959 MB / 0.5555 GB, free: 93.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/0.6233, allocations: 315.6 kB / 0.5558 GB, free: 93.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/0.6237, allocations: 423 kB / 0.5562 GB, free: 92.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.522e-05/0.6238, allocations: 305.1 kB / 0.5565 GB, free: 92.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006977/0.6245, allocations: 399.8 kB / 0.5569 GB, free: 91.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008459/0.6253, allocations: 1.095 MB / 0.5579 GB, free: 90.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/0.6269, allocations: 1.609 MB / 0.5595 GB, free: 88.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.6269, allocations: 11.78 kB / 0.5595 GB, free: 88.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002746/0.6296, allocations: 2.232 MB / 0.5617 GB, free: 86.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.6297, allocations: 23.69 kB / 0.5617 GB, free: 86.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001462/0.6298, allocations: 164 kB / 0.5619 GB, free: 86.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.227e-05/0.6298, allocations: 32 kB / 0.5619 GB, free: 86.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.6309, allocations: 362.3 kB / 0.5622 GB, free: 85.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-05/0.6309, allocations: 43.86 kB / 0.5623 GB, free: 85.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.6326, allocations: 199.4 kB / 0.5625 GB, free: 85.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.6328, allocations: 124 kB / 0.5626 GB, free: 85.54 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.0009443/0.6337, allocations: 0.7114 MB / 0.5633 GB, free: 84.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004543/0.6342, allocations: 0.753 MB / 0.564 GB, free: 84.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.6376, allocations: 2.162 MB / 0.5661 GB, free: 82.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.6377, allocations: 8 kB / 0.5661 GB, free: 82.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6377, allocations: 0 / 0.5661 GB, free: 82.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.6377, allocations: 3.984 kB / 0.5661 GB, free: 82.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004462/0.6421, allocations: 3.481 MB / 0.5695 GB, free: 78.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001342/0.6423, allocations: 140 kB / 0.5697 GB, free: 78.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007019/0.643, allocations: 155.9 kB / 0.5698 GB, free: 78.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.643, allocations: 4 kB / 0.5698 GB, free: 78.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-05/0.643, allocations: 56 kB / 0.5699 GB, free: 78.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.6431, allocations: 11.92 kB / 0.5699 GB, free: 78.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6431, allocations: 0 / 0.5699 GB, free: 78.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002616/0.6457, allocations: 2.193 MB / 0.572 GB, free: 75.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/0.6471, allocations: 0.7828 MB / 0.5728 GB, free: 75.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005245/0.6476, allocations: 16 kB / 0.5728 GB, free: 75.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.6488, allocations: 35.95 kB / 0.5729 GB, free: 75.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.649, allocations: 104.5 kB / 0.573 GB, free: 74.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.6491, allocations: 72.81 kB / 0.573 GB, free: 74.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003698/0.6528, allocations: 3.604 MB / 0.5765 GB, free: 71.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6528, allocations: 0 / 0.5765 GB, free: 71.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002092/0.6549, allocations: 1.082 MB / 0.5776 GB, free: 70.33 MB / 446.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.004232/0.6591, allocations: 3.844 MB / 0.5814 GB, free: 66.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.661, allocations: 1.366 MB / 0.5827 GB, free: 65.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.661, allocations: 0 / 0.5827 GB, free: 65.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008419/0.6619, allocations: 0.732 MB / 0.5834 GB, free: 64.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/0.6657, allocations: 1.18 MB / 0.5846 GB, free: 63.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03137/0.697, allocations: 30.53 MB / 0.6144 GB, free: 31.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.6983, allocations: 2.105 MB / 0.6164 GB, free: 29.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001718/0.7, allocations: 0.6846 MB / 0.6171 GB, free: 29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001629/0.7016, allocations: 2.397 MB / 0.6194 GB, free: 26.61 MB / 446.1 MB Notification: Performance of SimCode: time 9.61e-07/0.7016, allocations: 0 / 0.6194 GB, free: 26.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2407/0.9423, allocations: 117.5 MB / 0.7342 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.13/23.08, allocations: 8.062 kB / 0.7342 GB, free: 5.91 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 27.022861352015752]