Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002177/0.002177, allocations: 205.1 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002862/0.002862, allocations: 63.91 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2516, allocations: 53.4 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02525/0.2768, allocations: 22.25 MB / 453.4 MB, free: 116 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02967/0.3065, allocations: 19.55 MB / 472.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004436/0.3109, allocations: 265.1 kB / 473.2 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00493/0.3159, allocations: 1.684 MB / 474.9 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.3272, allocations: 3.314 MB / 478.2 MB, free: 7.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005466/0.3327, allocations: 1.593 MB / 479.8 MB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02191/0.3546, allocations: 12.91 MB / 492.7 MB, free: 8.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.356, allocations: 0.4964 MB / 493.2 MB, free: 8.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00437/0.3604, allocations: 2.205 MB / 495.4 MB, free: 5.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004342/0.3647, allocations: 2.018 MB / 497.4 MB, free: 3.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008095/0.3655, allocations: 136 kB / 497.5 MB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00548/0.371, allocations: 1.261 MB / 498.8 MB, free: 2.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.3722, allocations: 0.601 MB / 499.4 MB, free: 1.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003729/0.3759, allocations: 1.921 MB / 0.4896 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.3898, allocations: 6.742 MB / 0.4962 GB, free: 9.164 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3898, allocations: 0 / 0.4962 GB, free: 9.164 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3898, allocations: 0 / 0.4962 GB, free: 9.164 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003187/0.3901, allocations: 4 kB / 0.4962 GB, free: 9.16 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.01388/0.404, allocations: 6.851 MB / 0.5028 GB, free: 2.227 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.404, allocations: 19.97 kB / 0.5029 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003442/0.4044, allocations: 157.2 kB / 0.503 GB, free: 2.043 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001447/0.4058, allocations: 0.7841 MB / 0.5038 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008974/0.4148, allocations: 4.371 MB / 0.5081 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.402e-05/0.4149, allocations: 69.94 kB / 0.5081 GB, free: 12.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003429/0.4152, allocations: 107.8 kB / 0.5082 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003937/0.4192, allocations: 1.309 MB / 0.5095 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.4192, allocations: 0 / 0.5095 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.4194, allocations: 40 kB / 0.5095 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.313e-05/0.4194, allocations: 35.98 kB / 0.5096 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004355/0.4238, allocations: 1.48 MB / 0.511 GB, free: 9.703 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.4408, allocations: 5.301 MB / 0.5162 GB, free: 4.328 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.4442, allocations: 0.864 MB / 0.517 GB, free: 3.453 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/0.4473, allocations: 1.063 MB / 0.5181 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2706/0.718, allocations: 27.06 MB / 0.5445 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008984/0.7189, allocations: 0.5601 MB / 0.5451 GB, free: 102.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.276e-06/0.7189, allocations: 2.188 kB / 0.5451 GB, free: 102.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002806/0.7217, allocations: 1.91 MB / 0.5469 GB, free: 101.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.7217, allocations: 63.91 kB / 0.547 GB, free: 101.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005292/0.727, allocations: 5.624 MB / 0.5525 GB, free: 96.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/0.7272, allocations: 41.7 kB / 0.5525 GB, free: 96.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.7288, allocations: 2.971 MB / 0.5554 GB, free: 93.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.7291, allocations: 319.1 kB / 0.5557 GB, free: 92.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004198/0.7295, allocations: 423 kB / 0.5561 GB, free: 92.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.202e-05/0.7296, allocations: 305.1 kB / 0.5564 GB, free: 92.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007283/0.7303, allocations: 399.8 kB / 0.5568 GB, free: 91.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008998/0.7312, allocations: 1.095 MB / 0.5579 GB, free: 90.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.7329, allocations: 1.604 MB / 0.5594 GB, free: 88.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.7329, allocations: 11.78 kB / 0.5594 GB, free: 88.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00301/0.7359, allocations: 2.233 MB / 0.5616 GB, free: 86.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.7359, allocations: 19.94 kB / 0.5616 GB, free: 86.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001681/0.7361, allocations: 164 kB / 0.5618 GB, free: 86.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.552e-05/0.7361, allocations: 32 kB / 0.5618 GB, free: 86.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.7372, allocations: 359.4 kB / 0.5622 GB, free: 85.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.624e-05/0.7372, allocations: 53.58 kB / 0.5622 GB, free: 85.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.7392, allocations: 189.1 kB / 0.5624 GB, free: 85.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.7394, allocations: 128 kB / 0.5625 GB, free: 85.34 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.001253/0.7406, allocations: 0.711 MB / 0.5632 GB, free: 84.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008508/0.7415, allocations: 0.753 MB / 0.564 GB, free: 83.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003816/0.7453, allocations: 2.157 MB / 0.5661 GB, free: 81.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.7453, allocations: 11.98 kB / 0.5661 GB, free: 81.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.7453, allocations: 0 / 0.5661 GB, free: 81.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.7453, allocations: 0 / 0.5661 GB, free: 81.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004834/0.7501, allocations: 3.496 MB / 0.5695 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001597/0.7503, allocations: 140 kB / 0.5696 GB, free: 78.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006961/0.751, allocations: 158.9 kB / 0.5698 GB, free: 78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.751, allocations: 4 kB / 0.5698 GB, free: 78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.679e-05/0.7511, allocations: 56 kB / 0.5698 GB, free: 77.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.7511, allocations: 4 kB / 0.5698 GB, free: 77.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7511, allocations: 4.062 kB / 0.5698 GB, free: 77.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/0.7539, allocations: 2.194 MB / 0.572 GB, free: 75.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/0.7554, allocations: 0.7784 MB / 0.5727 GB, free: 74.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005255/0.7559, allocations: 20 kB / 0.5728 GB, free: 74.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.7571, allocations: 31.95 kB / 0.5728 GB, free: 74.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.7573, allocations: 100.6 kB / 0.5729 GB, free: 74.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.7574, allocations: 71.98 kB / 0.573 GB, free: 74.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003886/0.7613, allocations: 3.604 MB / 0.5765 GB, free: 71.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7613, allocations: 0 / 0.5765 GB, free: 71.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002348/0.7636, allocations: 1.092 MB / 0.5775 GB, free: 70.12 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.004272/0.7679, allocations: 3.845 MB / 0.5813 GB, free: 66.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.7699, allocations: 1.366 MB / 0.5826 GB, free: 64.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.7699, allocations: 0 / 0.5826 GB, free: 64.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008932/0.7708, allocations: 0.7327 MB / 0.5833 GB, free: 64.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004613/0.7754, allocations: 1.176 MB / 0.5845 GB, free: 62.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/0.8166, allocations: 30.53 MB / 0.6143 GB, free: 31.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/0.818, allocations: 2.102 MB / 0.6164 GB, free: 29.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002074/0.82, allocations: 0.6885 MB / 0.617 GB, free: 28.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/0.8219, allocations: 2.389 MB / 0.6194 GB, free: 26.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.8219, allocations: 3.828 kB / 0.6194 GB, free: 26.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.229/1.051, allocations: 117 MB / 0.7337 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.31/24.36, allocations: 8 kB / 0.7337 GB, free: 5.938 MB / 0.5294 GB " [Timeout remaining time 635] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 28.62862431583926]