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.0007998/0.0007998, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000831/0.000831, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8683/0.8683, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.773e-06/1.773e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.478e-05/1.655e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0133/0.01332, allocations: 22.25 MB / 346.8 MB, free: 9.605 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.03193, allocations: 19.57 MB / 366.4 MB, free: 5.957 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003724/0.03565, allocations: 265.1 kB / 366.6 MB, free: 5.695 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003221/0.03887, allocations: 1.679 MB / 368.3 MB, free: 4.004 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007867/0.04674, allocations: 3.434 MB / 371.8 MB, free: 0.543 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004256/0.05099, allocations: 1.62 MB / 373.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01313/0.06412, allocations: 13.24 MB / 386.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/0.06525, allocations: 0.5002 MB / 387.1 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00305/0.0683, allocations: 2.977 MB / 390.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.06949, allocations: 1.502 MB / 391.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.06966, allocations: 136 kB / 391.7 MB, free: 12.47 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.07206, allocations: 1.272 MB / 393 MB, free: 11.2 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004253/0.07249, allocations: 0.6048 MB / 393.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.07366, allocations: 1.406 MB / 395 MB, free: 9.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005269/0.07893, allocations: 6.503 MB / 401.5 MB, free: 2.652 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.07893, allocations: 0 / 401.5 MB, free: 2.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.07893, allocations: 0 / 401.5 MB, free: 2.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001371/0.07907, allocations: 0 / 401.5 MB, free: 2.652 MB / 362.7 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.005772/0.08484, allocations: 6.792 MB / 408.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.08489, allocations: 8.031 kB / 408.3 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.08503, allocations: 165.2 kB / 408.5 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005433/0.08557, allocations: 0.7764 MB / 409.3 MB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004121/0.08969, allocations: 4.371 MB / 413.6 MB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.08973, allocations: 66 kB / 413.7 MB, free: 6.266 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.08988, allocations: 99.91 kB / 413.8 MB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.09147, allocations: 1.309 MB / 415.1 MB, free: 4.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.09148, allocations: 3.75 kB / 415.1 MB, free: 4.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.792e-05/0.09156, allocations: 36 kB / 415.1 MB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.09159, allocations: 39.97 kB / 415.2 MB, free: 4.766 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.0931, allocations: 1.488 MB / 416.7 MB, free: 3.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006206/0.09931, allocations: 5.282 MB / 421.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.1003, allocations: 0.872 MB / 422.8 MB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009795/0.1013, allocations: 1.064 MB / 423.9 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02905/0.1303, allocations: 27.06 MB / 450.9 MB, free: 168 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1321/0.2625, allocations: 0.5586 MB / 451.5 MB, free: 119 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 3.286e-06/0.2625, allocations: 0.5312 kB / 451.5 MB, free: 119 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.00267/0.2651, allocations: 1.906 MB / 453.4 MB, free: 118.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.2652, allocations: 68.39 kB / 453.5 MB, free: 118.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003837/0.269, allocations: 5.631 MB / 459.1 MB, free: 117 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.2691, allocations: 38.09 kB / 459.1 MB, free: 117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001083/0.2702, allocations: 2.963 MB / 462.1 MB, free: 114.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.2703, allocations: 310.2 kB / 462.4 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/0.2706, allocations: 423 kB / 462.8 MB, free: 113.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.82e-05/0.2706, allocations: 305 kB / 463.1 MB, free: 113.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.271, allocations: 399.8 kB / 463.5 MB, free: 113.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/0.2716, allocations: 1.091 MB / 464.6 MB, free: 111.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.2726, allocations: 1.613 MB / 466.2 MB, free: 109.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.2726, allocations: 4 kB / 466.2 MB, free: 109.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001643/0.2742, allocations: 2.243 MB / 468.5 MB, free: 107.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.2743, allocations: 16 kB / 468.5 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.912e-05/0.2744, allocations: 164 kB / 468.6 MB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/0.2744, allocations: 34.44 kB / 468.7 MB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000548/0.2749, allocations: 355.4 kB / 469 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.2749, allocations: 47.14 kB / 469.1 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008477/0.2758, allocations: 194.8 kB / 469.2 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.785e-05/0.2759, allocations: 128 kB / 469.4 MB, free: 106.7 MB / 410.7 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.0007959/0.2767, allocations: 0.7092 MB / 470.1 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.277, allocations: 0.753 MB / 470.8 MB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.2793, allocations: 2.152 MB / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.2793, allocations: 8 kB / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2793, allocations: 0 / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.2793, allocations: 3.984 kB / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002839/0.2822, allocations: 3.495 MB / 476.5 MB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.719e-05/0.2823, allocations: 140 kB / 476.6 MB, free: 99.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000365/0.2826, allocations: 154.9 kB / 476.8 MB, free: 99.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.2826, allocations: 4 kB / 476.8 MB, free: 99.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.78e-05/0.2827, allocations: 59.98 kB / 476.8 MB, free: 99.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2827, allocations: 7.938 kB / 476.9 MB, free: 99.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2827, allocations: 0 / 476.9 MB, free: 99.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.2843, allocations: 2.188 MB / 479 MB, free: 97.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007271/0.285, allocations: 0.7802 MB / 479.8 MB, free: 96.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/0.2853, allocations: 12 kB / 479.8 MB, free: 96.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.2859, allocations: 35.95 kB / 479.9 MB, free: 96.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.286, allocations: 104.5 kB / 480 MB, free: 96.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-05/0.2861, allocations: 71.98 kB / 480 MB, free: 96.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002527/0.2886, allocations: 3.612 MB / 483.7 MB, free: 92.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2886, allocations: 0 / 483.7 MB, free: 92.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001525/0.2901, allocations: 1.08 MB / 484.7 MB, free: 91.54 MB / 410.7 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.002994/0.2931, allocations: 3.942 MB / 488.7 MB, free: 87.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.2945, allocations: 1.37 MB / 490 MB, free: 86.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2945, allocations: 256 / 490 MB, free: 86.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.295, allocations: 0.7359 MB / 490.8 MB, free: 85.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/0.2979, allocations: 1.173 MB / 492 MB, free: 84.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03073/0.3287, allocations: 30.43 MB / 0.5101 GB, free: 53.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009394/0.3296, allocations: 2.109 MB / 0.5122 GB, free: 51.08 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001466/0.3311, allocations: 0.6807 MB / 0.5129 GB, free: 50.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/0.3322, allocations: 2.394 MB / 0.5152 GB, free: 48 MB / 410.7 MB Notification: Performance of SimCode: time 1.664e-06/0.3322, allocations: 0 / 0.5152 GB, free: 48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2872/0.6194, allocations: 116.9 MB / 0.6294 GB, free: 144.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.87, allocations: 5.297 kB / 0.6294 GB, free: 144.5 MB / 458.7 MB " [Timeout remaining time 647] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/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: 15.642821761779487]