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.001798/0.001798, allocations: 124 kB / 17.79 MB, free: 5.266 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.001956/0.001956, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.429/1.429, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 55.91 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1158, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.03005/0.1459, allocations: 26.8 MB / 444.6 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2356/0.3814, allocations: 22.39 MB / 467 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004582/0.386, allocations: 264.2 kB / 467.2 MB, free: 5.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004276/0.3903, allocations: 1.787 MB / 469 MB, free: 4.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4011, allocations: 3.253 MB / 472.3 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006413/0.4075, allocations: 1.624 MB / 473.9 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0203/0.4278, allocations: 12.73 MB / 486.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.4291, allocations: 0.5063 MB / 487.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003871/0.4329, allocations: 2.183 MB / 489.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003445/0.4364, allocations: 2.111 MB / 491.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004011/0.4368, allocations: 135.2 kB / 491.5 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00524/0.442, allocations: 1.537 MB / 493.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006642/0.4427, allocations: 0.5953 MB / 493.7 MB, free: 9.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003577/0.4463, allocations: 2.626 MB / 496.3 MB, free: 7.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.4571, allocations: 6.66 MB / 0.4912 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.4571, allocations: 0 / 0.4912 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4571, allocations: 0 / 0.4912 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001604/0.4573, allocations: 3.938 kB / 0.4912 GB, free: 0.8867 MB / 382.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.01029/0.4676, allocations: 6.935 MB / 0.498 GB, free: 9.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4676, allocations: 12.03 kB / 0.498 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.4678, allocations: 157.7 kB / 0.4981 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.4688, allocations: 0.7803 MB / 0.4989 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007412/0.4762, allocations: 4.656 MB / 0.5034 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.309e-05/0.4763, allocations: 66.5 kB / 0.5035 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.4766, allocations: 99.95 kB / 0.5036 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002432/0.479, allocations: 1.305 MB / 0.5049 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.479, allocations: 0 / 0.5049 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.4791, allocations: 32 kB / 0.5049 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.565e-05/0.4792, allocations: 43.97 kB / 0.5049 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.4819, allocations: 1.476 MB / 0.5064 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.4922, allocations: 5.628 MB / 0.5119 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.4939, allocations: 0.8725 MB / 0.5127 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.4957, allocations: 1.049 MB / 0.5137 GB, free: 9.473 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06418/0.5599, allocations: 59.82 MB / 0.5722 GB, free: 5.469 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.561, allocations: 0.556 MB / 0.5727 GB, free: 4.898 MB / 478.1 MB Notification: Performance of pre-optimization done (n=85): time 3.386e-06/0.561, allocations: 0 / 0.5727 GB, free: 4.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=85): time 0.004143/0.5652, allocations: 1.91 MB / 0.5746 GB, free: 2.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.5652, allocations: 63.97 kB / 0.5746 GB, free: 2.906 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008112/0.5733, allocations: 5.586 MB / 0.5801 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.5735, allocations: 41.69 kB / 0.5801 GB, free: 13.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002872/0.5764, allocations: 2.965 MB / 0.583 GB, free: 10.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/0.5768, allocations: 317.4 kB / 0.5833 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000646/0.5775, allocations: 430.9 kB / 0.5837 GB, free: 9.586 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.5776, allocations: 301.1 kB / 0.584 GB, free: 9.289 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009449/0.5786, allocations: 400.4 kB / 0.5844 GB, free: 8.898 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.5801, allocations: 1.099 MB / 0.5855 GB, free: 7.465 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002597/0.5827, allocations: 1.611 MB / 0.587 GB, free: 5.523 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/0.5827, allocations: 4 kB / 0.5871 GB, free: 5.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004393/0.5871, allocations: 2.241 MB / 0.5892 GB, free: 3.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.5871, allocations: 16 kB / 0.5893 GB, free: 3.254 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002271/0.5874, allocations: 164.5 kB / 0.5894 GB, free: 3.094 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.087e-05/0.5874, allocations: 36.72 kB / 0.5894 GB, free: 3.059 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.5886, allocations: 359.4 kB / 0.5898 GB, free: 2.707 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.266e-05/0.5887, allocations: 43.86 kB / 0.5898 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.5907, allocations: 197.4 kB / 0.59 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002108/0.5909, allocations: 124 kB / 0.5901 GB, free: 2.352 MB / 494.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.001478/0.5923, allocations: 0.7127 MB / 0.5908 GB, free: 1.629 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/0.5936, allocations: 0.7492 MB / 0.5916 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004931/0.5985, allocations: 2.146 MB / 0.5937 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.5985, allocations: 15.94 kB / 0.5937 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5985, allocations: 0 / 0.5937 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.996e-06/0.5985, allocations: 3.984 kB / 0.5937 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/0.6048, allocations: 3.603 MB / 0.5972 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001878/0.605, allocations: 143.9 kB / 0.5973 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007965/0.6058, allocations: 155.8 kB / 0.5975 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.6058, allocations: 4 kB / 0.5975 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.984e-05/0.6059, allocations: 60 kB / 0.5975 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.788e-06/0.6059, allocations: 7.984 kB / 0.5976 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6059, allocations: 0 / 0.5976 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003723/0.6096, allocations: 2.181 MB / 0.5997 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/0.6111, allocations: 0.8631 MB / 0.6005 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004606/0.6115, allocations: 12 kB / 0.6005 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6126, allocations: 39.89 kB / 0.6006 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.6128, allocations: 96.48 kB / 0.6007 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/0.613, allocations: 68 kB / 0.6007 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004997/0.618, allocations: 3.604 MB / 0.6043 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.618, allocations: 0 / 0.6043 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002383/0.6203, allocations: 1.092 MB / 0.6053 GB, free: 2.688 MB / 0.4981 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.005686/0.626, allocations: 3.848 MB / 0.6091 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002649/0.6287, allocations: 1.366 MB / 0.6104 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6287, allocations: 0 / 0.6104 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.6299, allocations: 0.7354 MB / 0.6111 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004831/0.6348, allocations: 1.17 MB / 0.6123 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2344/0.8692, allocations: 30.56 MB / 0.6421 GB, free: 184.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002178/0.8713, allocations: 2.592 MB / 0.6447 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002069/0.8734, allocations: 0.6779 MB / 0.6453 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/0.8754, allocations: 2.394 MB / 0.6477 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.242e-06/0.8754, allocations: 0 / 0.6477 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1568/1.032, allocations: 111.4 MB / 0.7565 GB, free: 92.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.42/26.45, allocations: 4.766 kB / 0.7565 GB, free: 92.3 MB / 0.5294 GB " [Timeout remaining time 633] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/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] "Error: Could not read variable mp1.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.09085235791281]