Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001384/0.001384, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001454/0.001454, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2273, allocations: 53.35 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01451/0.2418, allocations: 12.91 MB / 444 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0247/0.2665, allocations: 17.97 MB / 461.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.2683, allocations: 134.5 kB / 462.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002895/0.2712, allocations: 1.15 MB / 463.2 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006636/0.2778, allocations: 2.413 MB / 465.6 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004015/0.2818, allocations: 1.41 MB / 467 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009963/0.2918, allocations: 6.727 MB / 473.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005575/0.2923, allocations: 266.2 kB / 474 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.2939, allocations: 1.19 MB / 475.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.2952, allocations: 1.09 MB / 476.3 MB, free: 9.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.2955, allocations: 76 kB / 476.4 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003172/0.2986, allocations: 1.206 MB / 477.6 MB, free: 7.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003327/0.299, allocations: 341.4 kB / 477.9 MB, free: 7.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.3001, allocations: 1.048 MB / 479 MB, free: 6.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00486/0.3049, allocations: 4.052 MB / 483 MB, free: 2.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.305, allocations: 0 / 483 MB, free: 2.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.305, allocations: 0 / 483 MB, free: 2.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.817e-05/0.305, allocations: 0 / 483 MB, free: 2.438 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005703/0.3107, allocations: 3.886 MB / 486.9 MB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3107, allocations: 8.031 kB / 486.9 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.3109, allocations: 98.5 kB / 487 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005022/0.3114, allocations: 429.3 kB / 487.4 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/0.3151, allocations: 2.349 MB / 489.8 MB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/0.3151, allocations: 37 kB / 489.8 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.3153, allocations: 59.94 kB / 489.9 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.3168, allocations: 0.7304 MB / 490.6 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.3168, allocations: 0 / 490.6 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-05/0.3169, allocations: 16 kB / 490.6 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.3169, allocations: 23.98 kB / 490.6 MB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.3186, allocations: 0.8202 MB / 491.5 MB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005399/0.324, allocations: 2.906 MB / 494.4 MB, free: 6.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3252, allocations: 0.5202 MB / 494.9 MB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.3262, allocations: 0.5653 MB / 495.5 MB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02597/0.3522, allocations: 13.72 MB / 0.4972 GB, free: 7.645 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007951/0.353, allocations: 365.6 kB / 0.4976 GB, free: 7.273 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.353, allocations: 0 / 0.4976 GB, free: 7.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00246/0.3554, allocations: 1.126 MB / 0.4987 GB, free: 6.141 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.3555, allocations: 63.41 kB / 0.4988 GB, free: 6.066 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/0.3596, allocations: 3.102 MB / 0.5018 GB, free: 2.965 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.693e-05/0.3597, allocations: 41.62 kB / 0.5018 GB, free: 2.918 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.3612, allocations: 1.593 MB / 0.5034 GB, free: 1.316 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.3614, allocations: 166.6 kB / 0.5035 GB, free: 1.152 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.3617, allocations: 238.4 kB / 0.5038 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3619, allocations: 341.9 kB / 0.5041 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.3625, allocations: 241.9 kB / 0.5043 GB, free: 344 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009785/0.3635, allocations: 0.6057 MB / 0.5049 GB, free: 15.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.365, allocations: 0.8934 MB / 0.5058 GB, free: 14.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.365, allocations: 8 kB / 0.5058 GB, free: 14.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002304/0.3673, allocations: 1.263 MB / 0.507 GB, free: 13.21 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.3674, allocations: 10.56 kB / 0.507 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001323/0.3675, allocations: 87.98 kB / 0.5071 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.385e-05/0.3675, allocations: 20 kB / 0.5071 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00075/0.3683, allocations: 203.6 kB / 0.5073 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.493e-05/0.3683, allocations: 23.92 kB / 0.5074 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009725/0.3693, allocations: 111.3 kB / 0.5075 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.3694, allocations: 68 kB / 0.5075 GB, free: 12.7 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.000763/0.3702, allocations: 453.4 kB / 0.508 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004149/0.3706, allocations: 417.4 kB / 0.5084 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/0.3733, allocations: 1.207 MB / 0.5095 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.3733, allocations: 11.94 kB / 0.5095 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3733, allocations: 0 / 0.5095 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.3733, allocations: 7.984 kB / 0.5096 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/0.3769, allocations: 2.064 MB / 0.5116 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001022/0.377, allocations: 71.98 kB / 0.5116 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004855/0.3775, allocations: 91.86 kB / 0.5117 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.3775, allocations: 4 kB / 0.5117 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.988e-05/0.3775, allocations: 31.98 kB / 0.5118 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.3776, allocations: 0 / 0.5118 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3776, allocations: 12 kB / 0.5118 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.38, allocations: 1.343 MB / 0.5131 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009312/0.3809, allocations: 443.1 kB / 0.5135 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002954/0.3812, allocations: 11.98 kB / 0.5135 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007068/0.3819, allocations: 27.97 kB / 0.5135 GB, free: 6.426 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.3821, allocations: 67.86 kB / 0.5136 GB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.119e-05/0.3821, allocations: 36 kB / 0.5136 GB, free: 6.324 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.3849, allocations: 2.007 MB / 0.5156 GB, free: 4.324 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3849, allocations: 0 / 0.5156 GB, free: 4.324 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001409/0.3863, allocations: 0.5969 MB / 0.5162 GB, free: 3.727 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.003861/0.3902, allocations: 2.585 MB / 0.5187 GB, free: 1.105 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.392, allocations: 0.7755 MB / 0.5195 GB, free: 312 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.392, allocations: 0 / 0.5195 GB, free: 312 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008089/0.3928, allocations: 431.2 kB / 0.5199 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.3955, allocations: 0.6395 MB / 0.5205 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1982/0.5938, allocations: 17.03 MB / 0.5371 GB, free: 104.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001473/0.5952, allocations: 1.159 MB / 0.5383 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001197/0.5964, allocations: 362 kB / 0.5386 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/0.5976, allocations: 1.265 MB / 0.5399 GB, free: 104.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5976, allocations: 0 / 0.5399 GB, free: 104.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09285/0.6905, allocations: 66.55 MB / 0.6048 GB, free: 42.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/16.53, allocations: 7.938 kB / 0.6049 GB, free: 42.36 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_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_InvertersExtendedModel.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.098699619062245]