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.001842/0.001842, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002205/0.002205, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.51/1.51, allocations: 230.6 MB / 254.1 MB, free: 15.1 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="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 0.001526/0.001526, allocations: 43.94 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1158, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2319/0.3478, allocations: 26.81 MB / 453.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03733/0.3851, allocations: 22.43 MB / 475.5 MB, free: 9.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007459/0.3925, allocations: 267.8 kB / 475.8 MB, free: 9.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006501/0.399, allocations: 1.788 MB / 477.6 MB, free: 8.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01498/0.414, allocations: 3.249 MB / 480.8 MB, free: 5.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008108/0.4221, allocations: 1.623 MB / 482.5 MB, free: 4.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0265/0.4486, allocations: 12.87 MB / 495.3 MB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001697/0.4503, allocations: 0.5077 MB / 495.8 MB, free: 11.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004898/0.4552, allocations: 2.189 MB / 498 MB, free: 8.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004498/0.4597, allocations: 2.111 MB / 0.4884 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007949/0.4605, allocations: 136 kB / 0.4886 GB, free: 6.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006908/0.4674, allocations: 1.53 MB / 0.49 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.4686, allocations: 0.601 MB / 0.4906 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005016/0.4736, allocations: 2.624 MB / 0.4932 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01346/0.487, allocations: 6.668 MB / 0.4997 GB, free: 11.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.487, allocations: 0 / 0.4997 GB, free: 11.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.487, allocations: 4 kB / 0.4997 GB, free: 11.22 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002395/0.4873, allocations: 0 / 0.4997 GB, free: 11.22 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.01252/0.4998, allocations: 6.934 MB / 0.5065 GB, free: 4.188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.4999, allocations: 12.03 kB / 0.5065 GB, free: 4.176 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003052/0.5002, allocations: 157.2 kB / 0.5066 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/0.5014, allocations: 0.7803 MB / 0.5074 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008067/0.5095, allocations: 4.652 MB / 0.5119 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.75e-05/0.5095, allocations: 66 kB / 0.512 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002841/0.5098, allocations: 103.8 kB / 0.5121 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00268/0.5125, allocations: 1.309 MB / 0.5134 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.5125, allocations: 0 / 0.5134 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.5127, allocations: 36 kB / 0.5134 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.66e-05/0.5127, allocations: 39.97 kB / 0.5135 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00288/0.5156, allocations: 1.48 MB / 0.5149 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/0.5275, allocations: 5.623 MB / 0.5204 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002063/0.5296, allocations: 0.8757 MB / 0.5213 GB, free: 4.84 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.5314, allocations: 1.048 MB / 0.5223 GB, free: 3.797 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0686/0.6, allocations: 61.07 MB / 0.5819 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.6012, allocations: 0.5526 MB / 0.5825 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.797e-06/0.6012, allocations: 0 / 0.5825 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.004162/0.6054, allocations: 1.914 MB / 0.5843 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.235e-05/0.6054, allocations: 63.97 kB / 0.5844 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008908/0.6143, allocations: 5.586 MB / 0.5898 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.6146, allocations: 45.69 kB / 0.5899 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002981/0.6175, allocations: 2.965 MB / 0.5928 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004981/0.618, allocations: 309.3 kB / 0.5931 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006755/0.6187, allocations: 435 kB / 0.5935 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.6189, allocations: 301.1 kB / 0.5938 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.6199, allocations: 399.8 kB / 0.5942 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/0.6215, allocations: 1.095 MB / 0.5952 GB, free: 248 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.6242, allocations: 1.609 MB / 0.5968 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.645e-05/0.6242, allocations: 8 kB / 0.5968 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00462/0.6289, allocations: 2.241 MB / 0.599 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.6289, allocations: 16 kB / 0.599 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002619/0.6292, allocations: 169.7 kB / 0.5992 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.304e-05/0.6292, allocations: 32 kB / 0.5992 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.6305, allocations: 363.8 kB / 0.5996 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.006e-05/0.6306, allocations: 47.8 kB / 0.5996 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/0.6331, allocations: 190.7 kB / 0.5998 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002756/0.6334, allocations: 120 kB / 0.5999 GB, free: 11.13 MB / 0.5137 GB 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.001707/0.6351, allocations: 0.7082 MB / 0.6006 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/0.6364, allocations: 0.7531 MB / 0.6013 GB, free: 9.656 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/0.6417, allocations: 2.157 MB / 0.6034 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.6417, allocations: 8 kB / 0.6034 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.6417, allocations: 0 / 0.6034 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.6417, allocations: 7.984 kB / 0.6034 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007555/0.6493, allocations: 3.611 MB / 0.607 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002007/0.6495, allocations: 140 kB / 0.6071 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008227/0.6503, allocations: 153.1 kB / 0.6072 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.6503, allocations: 4 kB / 0.6073 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.6504, allocations: 64.05 kB / 0.6073 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.792e-06/0.6504, allocations: 4 kB / 0.6073 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6505, allocations: 0 / 0.6073 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.6546, allocations: 2.192 MB / 0.6095 GB, free: 1.219 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/0.6566, allocations: 0.8514 MB / 0.6103 GB, free: 352 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007352/0.6573, allocations: 15.98 kB / 0.6103 GB, free: 336 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.6587, allocations: 39.97 kB / 0.6103 GB, free: 296 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.659, allocations: 96.48 kB / 0.6104 GB, free: 200 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.6591, allocations: 64.88 kB / 0.6105 GB, free: 136 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006992/0.6661, allocations: 3.608 MB / 0.614 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.31e-07/0.6661, allocations: 0 / 0.614 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003491/0.6696, allocations: 1.089 MB / 0.6151 GB, free: 11.46 MB / 0.5294 GB 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.006676/0.6763, allocations: 3.851 MB / 0.6188 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002814/0.6791, allocations: 1.366 MB / 0.6202 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6791, allocations: 0 / 0.6202 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.6804, allocations: 0.7355 MB / 0.6209 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005749/0.6861, allocations: 1.175 MB / 0.622 GB, free: 4.211 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2554/0.9415, allocations: 30.56 MB / 0.6519 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004251/0.9458, allocations: 2.592 MB / 0.6544 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002614/0.9484, allocations: 0.6878 MB / 0.6551 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002741/0.9511, allocations: 2.395 MB / 0.6574 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.533e-06/0.9511, allocations: 0.625 kB / 0.6574 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1676/1.119, allocations: 111.4 MB / 0.7663 GB, free: 66.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.27/28.38, allocations: 12 kB / 0.7663 GB, free: 66.18 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable mp1.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.24651334999362]