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.001345/0.001345, allocations: 110 kB / 20.43 MB, free: 1.453 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.001598/0.001598, allocations: 213.1 kB / 23.74 MB, free: 4.66 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.415/1.415, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.002015/0.002015, allocations: 59.91 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.253, allocations: 53.41 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02747/0.2805, allocations: 26.83 MB / 458 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03279/0.3132, allocations: 22.44 MB / 480.5 MB, free: 5.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00524/0.3185, allocations: 265.1 kB / 480.7 MB, free: 4.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005631/0.3241, allocations: 1.792 MB / 482.5 MB, free: 3.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01265/0.3368, allocations: 3.326 MB / 485.8 MB, free: 15.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006145/0.3429, allocations: 1.636 MB / 487.5 MB, free: 14.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02173/0.3646, allocations: 12.92 MB / 0.4887 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.3663, allocations: 0.5082 MB / 0.4892 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004321/0.3706, allocations: 2.186 MB / 0.4913 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004135/0.3747, allocations: 2.1 MB / 0.4933 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009461/0.3757, allocations: 140 kB / 0.4935 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006683/0.3823, allocations: 1.537 MB / 0.495 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001117/0.3835, allocations: 0.5971 MB / 0.4956 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004857/0.3883, allocations: 2.624 MB / 0.4981 GB, free: 7.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.3998, allocations: 6.671 MB / 0.5046 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3998, allocations: 0 / 0.5046 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3998, allocations: 0 / 0.5046 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002387/0.4001, allocations: 0 / 0.5046 GB, free: 0.7539 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.01208/0.4122, allocations: 6.851 MB / 0.5113 GB, free: 9.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.4122, allocations: 12.03 kB / 0.5113 GB, free: 9.809 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003454/0.4125, allocations: 157.2 kB / 0.5115 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/0.4137, allocations: 0.7803 MB / 0.5122 GB, free: 8.859 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008406/0.4221, allocations: 4.383 MB / 0.5165 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.871e-05/0.4222, allocations: 66 kB / 0.5166 GB, free: 4.289 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003855/0.4226, allocations: 107.8 kB / 0.5167 GB, free: 4.184 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002784/0.4254, allocations: 1.297 MB / 0.518 GB, free: 2.871 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.4254, allocations: 8 kB / 0.518 GB, free: 2.863 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.4255, allocations: 32 kB / 0.518 GB, free: 2.832 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.218e-05/0.4256, allocations: 43.97 kB / 0.518 GB, free: 2.789 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002799/0.4284, allocations: 1.484 MB / 0.5195 GB, free: 1.301 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/0.4401, allocations: 5.57 MB / 0.5249 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.442, allocations: 0.868 MB / 0.5258 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001685/0.4436, allocations: 1.071 MB / 0.5268 GB, free: 9.707 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2359/0.6796, allocations: 27.15 MB / 0.5533 GB, free: 95.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000845/0.6804, allocations: 0.5611 MB / 0.5539 GB, free: 95.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.835e-06/0.6804, allocations: 0 / 0.5539 GB, free: 95.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002659/0.6831, allocations: 1.916 MB / 0.5558 GB, free: 93.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.6831, allocations: 60.06 kB / 0.5558 GB, free: 93.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005038/0.6882, allocations: 5.593 MB / 0.5613 GB, free: 87.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.6883, allocations: 45.11 kB / 0.5613 GB, free: 87.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/0.6899, allocations: 2.965 MB / 0.5642 GB, free: 85.03 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.6901, allocations: 314 kB / 0.5645 GB, free: 84.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003777/0.6905, allocations: 427 kB / 0.5649 GB, free: 84.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.51e-05/0.6905, allocations: 301.1 kB / 0.5652 GB, free: 84.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006749/0.6912, allocations: 403.5 kB / 0.5656 GB, free: 83.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008563/0.692, allocations: 1.09 MB / 0.5667 GB, free: 82.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.6936, allocations: 1.613 MB / 0.5682 GB, free: 80.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.6936, allocations: 8 kB / 0.5682 GB, free: 80.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002728/0.6964, allocations: 2.24 MB / 0.5704 GB, free: 78.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.6964, allocations: 12 kB / 0.5704 GB, free: 78.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/0.6966, allocations: 164 kB / 0.5706 GB, free: 77.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.324e-05/0.6966, allocations: 35.62 kB / 0.5706 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6976, allocations: 359.4 kB / 0.571 GB, free: 77.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.751e-05/0.6976, allocations: 43.86 kB / 0.571 GB, free: 77.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.6991, allocations: 202.3 kB / 0.5712 GB, free: 77.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/0.6993, allocations: 124 kB / 0.5713 GB, free: 77.25 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.0009788/0.7002, allocations: 0.7095 MB / 0.572 GB, free: 76.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004535/0.7007, allocations: 0.7492 MB / 0.5728 GB, free: 75.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003649/0.7043, allocations: 2.154 MB / 0.5749 GB, free: 73.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.036e-06/0.7044, allocations: 11.98 kB / 0.5749 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.7044, allocations: 0 / 0.5749 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.7044, allocations: 3.516 kB / 0.5749 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004359/0.7087, allocations: 3.592 MB / 0.5784 GB, free: 70 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001466/0.7089, allocations: 140 kB / 0.5785 GB, free: 69.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006698/0.7095, allocations: 151.8 kB / 0.5787 GB, free: 69.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.7096, allocations: 4 kB / 0.5787 GB, free: 69.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.399e-05/0.7096, allocations: 60 kB / 0.5787 GB, free: 69.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.7096, allocations: 4.062 kB / 0.5787 GB, free: 69.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7096, allocations: 4 kB / 0.5787 GB, free: 69.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.7121, allocations: 2.186 MB / 0.5809 GB, free: 67.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.7134, allocations: 0.7823 MB / 0.5816 GB, free: 66.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005286/0.714, allocations: 12 kB / 0.5816 GB, free: 66.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.715, allocations: 39.95 kB / 0.5817 GB, free: 66.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.7152, allocations: 100.5 kB / 0.5818 GB, free: 66.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-05/0.7153, allocations: 72.86 kB / 0.5818 GB, free: 66.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003636/0.7189, allocations: 3.604 MB / 0.5854 GB, free: 62.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7189, allocations: 0 / 0.5854 GB, free: 62.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002033/0.721, allocations: 1.086 MB / 0.5864 GB, free: 61.84 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.003898/0.7249, allocations: 3.845 MB / 0.5902 GB, free: 58.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.7268, allocations: 1.363 MB / 0.5915 GB, free: 56.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.7268, allocations: 0 / 0.5915 GB, free: 56.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008486/0.7276, allocations: 0.7361 MB / 0.5922 GB, free: 55.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00414/0.7318, allocations: 1.179 MB / 0.5934 GB, free: 54.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03405/0.7658, allocations: 30.56 MB / 0.6232 GB, free: 23.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.7671, allocations: 2.595 MB / 0.6257 GB, free: 20.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001725/0.7688, allocations: 0.6768 MB / 0.6264 GB, free: 20 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.7704, allocations: 2.401 MB / 0.6288 GB, free: 17.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.353e-06/0.7704, allocations: 0 / 0.6288 GB, free: 17.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1974/0.9678, allocations: 112.5 MB / 0.7386 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.67/29.64, allocations: 11.69 kB / 0.7386 GB, free: 1.66 MB / 0.5294 GB " [Timeout remaining time 630] (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: 33.67380973510444]