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.001331/0.001331, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001468/0.001468, allocations: 212.6 kB / 24.51 MB, free: 3.941 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.378/1.378, allocations: 230.6 MB / 258.3 MB, free: 7.785 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 47.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2366, allocations: 53.36 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0219/0.2585, allocations: 22.24 MB / 454.1 MB, free: 336 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02535/0.2839, allocations: 19.54 MB / 473.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003832/0.2877, allocations: 269.1 kB / 473.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004353/0.2921, allocations: 1.68 MB / 475.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.3032, allocations: 3.314 MB / 478.9 MB, free: 7.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005427/0.3087, allocations: 1.59 MB / 480.5 MB, free: 5.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02088/0.3295, allocations: 12.9 MB / 493.4 MB, free: 8.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.3307, allocations: 0.512 MB / 493.9 MB, free: 8.336 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003356/0.3341, allocations: 2.205 MB / 496.1 MB, free: 6.121 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003266/0.3373, allocations: 2.103 MB / 498.2 MB, free: 4.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004403/0.3378, allocations: 136 kB / 498.3 MB, free: 3.871 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00386/0.3416, allocations: 1.296 MB / 499.6 MB, free: 2.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000749/0.3424, allocations: 0.5971 MB / 0.4885 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002529/0.3449, allocations: 1.932 MB / 0.4904 GB, free: 28 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01045/0.3554, allocations: 6.734 MB / 0.497 GB, free: 9.262 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.3554, allocations: 3.984 kB / 0.497 GB, free: 9.258 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3554, allocations: 0 / 0.497 GB, free: 9.258 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002169/0.3556, allocations: 4 kB / 0.497 GB, free: 9.254 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.01042/0.366, allocations: 6.851 MB / 0.5037 GB, free: 2.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.3661, allocations: 12.03 kB / 0.5037 GB, free: 2.309 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.792e-05/0.3661, allocations: 26 kB / 0.5037 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002203/0.3663, allocations: 161.2 kB / 0.5039 GB, free: 2.117 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.3675, allocations: 0.7764 MB / 0.5046 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007551/0.375, allocations: 4.379 MB / 0.5089 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.938e-05/0.3751, allocations: 66 kB / 0.5089 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002566/0.3754, allocations: 107.6 kB / 0.5091 GB, free: 12.66 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.3778, allocations: 1.305 MB / 0.5103 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.3778, allocations: 0 / 0.5103 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.3779, allocations: 36 kB / 0.5104 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.243e-05/0.378, allocations: 39.97 kB / 0.5104 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.3806, allocations: 1.496 MB / 0.5119 GB, free: 9.766 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.3912, allocations: 5.297 MB / 0.517 GB, free: 4.398 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.3929, allocations: 0.8757 MB / 0.5179 GB, free: 3.508 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.3944, allocations: 1.066 MB / 0.5189 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2451/0.6395, allocations: 27.07 MB / 0.5454 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008878/0.6404, allocations: 0.5583 MB / 0.5459 GB, free: 102.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.937e-06/0.6404, allocations: 0 / 0.5459 GB, free: 102.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002739/0.6431, allocations: 1.908 MB / 0.5478 GB, free: 101.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.6432, allocations: 65.09 kB / 0.5478 GB, free: 101.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004938/0.6481, allocations: 5.589 MB / 0.5533 GB, free: 96.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.6482, allocations: 41.7 kB / 0.5533 GB, free: 96.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.6497, allocations: 2.971 MB / 0.5562 GB, free: 93.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.6499, allocations: 313.1 kB / 0.5565 GB, free: 93.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003846/0.6503, allocations: 423 kB / 0.5569 GB, free: 92.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.388e-05/0.6503, allocations: 309.1 kB / 0.5572 GB, free: 92.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006736/0.651, allocations: 401.8 kB / 0.5576 GB, free: 91.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008299/0.6518, allocations: 1.084 MB / 0.5587 GB, free: 90.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.6534, allocations: 1.617 MB / 0.5602 GB, free: 88.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.6534, allocations: 9.375 kB / 0.5603 GB, free: 88.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00262/0.656, allocations: 2.238 MB / 0.5624 GB, free: 86.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.656, allocations: 15.94 kB / 0.5625 GB, free: 86.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/0.6562, allocations: 166.9 kB / 0.5626 GB, free: 86.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.26e-05/0.6562, allocations: 32 kB / 0.5626 GB, free: 86.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009622/0.6572, allocations: 355.4 kB / 0.563 GB, free: 85.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.579e-05/0.6572, allocations: 51.58 kB / 0.563 GB, free: 85.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.6588, allocations: 190.8 kB / 0.5632 GB, free: 85.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.6589, allocations: 120 kB / 0.5633 GB, free: 85.59 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.001021/0.6599, allocations: 0.7198 MB / 0.564 GB, free: 84.87 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/0.6604, allocations: 0.753 MB / 0.5648 GB, free: 84.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/0.6638, allocations: 2.157 MB / 0.5669 GB, free: 82.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.6638, allocations: 8 kB / 0.5669 GB, free: 82.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6638, allocations: 0 / 0.5669 GB, free: 82.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.6638, allocations: 7.359 kB / 0.5669 GB, free: 82.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004097/0.6679, allocations: 3.495 MB / 0.5703 GB, free: 78.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001309/0.668, allocations: 136 kB / 0.5704 GB, free: 78.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/0.6687, allocations: 147.8 kB / 0.5706 GB, free: 78.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.6687, allocations: 4 kB / 0.5706 GB, free: 78.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.363e-05/0.6687, allocations: 63.98 kB / 0.5706 GB, free: 78.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.6687, allocations: 4 kB / 0.5706 GB, free: 78.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.6687, allocations: 7.969 kB / 0.5706 GB, free: 78.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.6715, allocations: 2.19 MB / 0.5728 GB, free: 75.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001402/0.6729, allocations: 0.7861 MB / 0.5736 GB, free: 75.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000651/0.6735, allocations: 16 kB / 0.5736 GB, free: 75.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.6746, allocations: 31.97 kB / 0.5736 GB, free: 75.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.6748, allocations: 100.5 kB / 0.5737 GB, free: 75.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.6749, allocations: 71.98 kB / 0.5738 GB, free: 74.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004116/0.679, allocations: 3.604 MB / 0.5773 GB, free: 71.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.679, allocations: 0 / 0.5773 GB, free: 71.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002358/0.6814, allocations: 1.086 MB / 0.5783 GB, free: 70.37 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.004081/0.6855, allocations: 3.857 MB / 0.5821 GB, free: 66.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.6873, allocations: 1.354 MB / 0.5834 GB, free: 65.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6873, allocations: 0 / 0.5834 GB, free: 65.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008361/0.6881, allocations: 0.7404 MB / 0.5842 GB, free: 64.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003962/0.6921, allocations: 1.169 MB / 0.5853 GB, free: 63.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03404/0.7261, allocations: 30.54 MB / 0.6151 GB, free: 31.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.7274, allocations: 2.102 MB / 0.6172 GB, free: 29.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00198/0.7294, allocations: 0.6846 MB / 0.6178 GB, free: 29.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001856/0.7313, allocations: 2.393 MB / 0.6202 GB, free: 26.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.7313, allocations: 0 / 0.6202 GB, free: 26.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1774/0.9087, allocations: 117.1 MB / 0.7346 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.4/28.31, allocations: 11.95 kB / 0.7346 GB, free: 6.273 MB / 0.5294 GB " [Timeout remaining time 631] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 33.84873937792145]