Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001253/0.001253, allocations: 101.5 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.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.001336/0.001336, allocations: 185.6 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 225.7 MB / 253.3 MB, free: 12.88 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 47.92 kB / 371.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2328, allocations: 52.17 MB / 423.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02173/0.2545, allocations: 22.22 MB / 445.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02671/0.2812, allocations: 19.52 MB / 465.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004722/0.2859, allocations: 269.1 kB / 465.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004435/0.2903, allocations: 1.673 MB / 467 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01047/0.3008, allocations: 3.31 MB / 470.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005228/0.3061, allocations: 1.601 MB / 471.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01919/0.3252, allocations: 12.75 MB / 484.7 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.3265, allocations: 0.512 MB / 485.2 MB, free: 308 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003266/0.3297, allocations: 2.201 MB / 487.4 MB, free: 14.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003051/0.3328, allocations: 2.103 MB / 489.5 MB, free: 11.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004607/0.3332, allocations: 136 kB / 489.6 MB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.3368, allocations: 1.288 MB / 490.9 MB, free: 10.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006319/0.3375, allocations: 0.6049 MB / 491.5 MB, free: 9.941 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00253/0.34, allocations: 1.929 MB / 493.5 MB, free: 8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008551/0.3486, allocations: 6.738 MB / 0.4885 GB, free: 1.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3486, allocations: 0 / 0.4885 GB, free: 1.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3486, allocations: 0 / 0.4885 GB, free: 1.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001567/0.3487, allocations: 0 / 0.4885 GB, free: 1.23 MB / 398.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.009595/0.3583, allocations: 6.859 MB / 0.4952 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3584, allocations: 12.03 kB / 0.4952 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.189e-05/0.3584, allocations: 26 kB / 0.4952 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.3586, allocations: 157.2 kB / 0.4954 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.3596, allocations: 0.7803 MB / 0.4961 GB, free: 9.301 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006896/0.3665, allocations: 4.371 MB / 0.5004 GB, free: 4.805 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/0.3666, allocations: 66 kB / 0.5004 GB, free: 4.742 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002377/0.3668, allocations: 103.8 kB / 0.5005 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.3691, allocations: 1.313 MB / 0.5018 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.3692, allocations: 3.984 kB / 0.5018 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.3693, allocations: 36 kB / 0.5019 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-05/0.3693, allocations: 39.97 kB / 0.5019 GB, free: 3.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/0.3718, allocations: 1.492 MB / 0.5034 GB, free: 1.738 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009936/0.3818, allocations: 5.297 MB / 0.5085 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.3834, allocations: 0.8639 MB / 0.5094 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.385, allocations: 1.067 MB / 0.5104 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2331/0.6181, allocations: 26.99 MB / 0.5368 GB, free: 112.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.6191, allocations: 0.5597 MB / 0.5373 GB, free: 112.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.937e-06/0.6191, allocations: 0 / 0.5373 GB, free: 112.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003206/0.6223, allocations: 1.906 MB / 0.5392 GB, free: 112.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.6224, allocations: 65.23 kB / 0.5392 GB, free: 112.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005346/0.6277, allocations: 5.591 MB / 0.5447 GB, free: 110.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.6279, allocations: 40.84 kB / 0.5447 GB, free: 110.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/0.6295, allocations: 2.969 MB / 0.5476 GB, free: 108 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.6297, allocations: 313.8 kB / 0.5479 GB, free: 107.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000422/0.6301, allocations: 431.1 kB / 0.5484 GB, free: 107.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.65e-05/0.6302, allocations: 308.9 kB / 0.5486 GB, free: 107 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006952/0.6309, allocations: 403.8 kB / 0.549 GB, free: 106.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008767/0.6317, allocations: 1.089 MB / 0.5501 GB, free: 105.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.6333, allocations: 1.609 MB / 0.5517 GB, free: 103.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.6333, allocations: 8 kB / 0.5517 GB, free: 103.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002973/0.6363, allocations: 2.245 MB / 0.5539 GB, free: 101.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.6363, allocations: 12 kB / 0.5539 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001603/0.6365, allocations: 160 kB / 0.554 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.676e-05/0.6365, allocations: 32 kB / 0.5541 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.6375, allocations: 364.8 kB / 0.5544 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/0.6375, allocations: 47.84 kB / 0.5545 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.6391, allocations: 189 kB / 0.5546 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.6392, allocations: 127.9 kB / 0.5548 GB, free: 100.2 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.001036/0.6402, allocations: 0.7165 MB / 0.5555 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004409/0.6407, allocations: 0.7531 MB / 0.5562 GB, free: 98.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/0.644, allocations: 2.151 MB / 0.5583 GB, free: 96.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.644, allocations: 8 kB / 0.5583 GB, free: 96.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.6441, allocations: 0 / 0.5583 GB, free: 96.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.6441, allocations: 5.625 kB / 0.5583 GB, free: 96.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00392/0.648, allocations: 3.497 MB / 0.5617 GB, free: 93.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000128/0.6481, allocations: 140 kB / 0.5619 GB, free: 93.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006577/0.6488, allocations: 151.8 kB / 0.562 GB, free: 92.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.6488, allocations: 4 kB / 0.562 GB, free: 92.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.677e-05/0.6488, allocations: 66.94 kB / 0.5621 GB, free: 92.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.6489, allocations: 7.938 kB / 0.5621 GB, free: 92.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.6489, allocations: 4.062 kB / 0.5621 GB, free: 92.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.6514, allocations: 2.182 MB / 0.5642 GB, free: 90.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.6526, allocations: 0.7825 MB / 0.565 GB, free: 89.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005501/0.6531, allocations: 15.98 kB / 0.565 GB, free: 89.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.6542, allocations: 40.78 kB / 0.565 GB, free: 89.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.6544, allocations: 100.5 kB / 0.5651 GB, free: 89.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.6545, allocations: 68 kB / 0.5652 GB, free: 89.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003596/0.6581, allocations: 3.604 MB / 0.5687 GB, free: 86.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6581, allocations: 0 / 0.5687 GB, free: 86.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001811/0.6599, allocations: 1.094 MB / 0.5698 GB, free: 85.03 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.003874/0.6638, allocations: 3.843 MB / 0.5735 GB, free: 81.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.6658, allocations: 1.37 MB / 0.5749 GB, free: 79.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6658, allocations: 0 / 0.5749 GB, free: 79.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008586/0.6666, allocations: 0.7328 MB / 0.5756 GB, free: 79.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004138/0.6708, allocations: 1.174 MB / 0.5767 GB, free: 77.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03091/0.7017, allocations: 30.54 MB / 0.6066 GB, free: 46.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.7029, allocations: 2.098 MB / 0.6086 GB, free: 44.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001582/0.7045, allocations: 0.6846 MB / 0.6093 GB, free: 43.76 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/0.706, allocations: 2.393 MB / 0.6116 GB, free: 41.37 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.706, allocations: 0 / 0.6116 GB, free: 41.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1776/0.8835, allocations: 117.1 MB / 0.726 GB, free: 5.031 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.5/28.39, allocations: 2.969 kB / 0.726 GB, free: 5.031 MB / 0.5138 GB " [Timeout remaining time 631] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.85510789998807]