Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001298/0.001298, 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.001348/0.001348, 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.404/1.404, 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 47.92 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09986, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0163/0.1162, allocations: 15.35 MB / 433.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2288/0.345, allocations: 20.8 MB / 453.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002294/0.3472, allocations: 133.5 kB / 454.1 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003173/0.3504, allocations: 1.269 MB / 455.3 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007767/0.3582, allocations: 2.364 MB / 457.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005032/0.3632, allocations: 1.448 MB / 459.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.374, allocations: 6.628 MB / 465.8 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006868/0.3747, allocations: 276.2 kB / 466 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002038/0.3768, allocations: 1.181 MB / 467.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.3781, allocations: 1.146 MB / 468.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.3783, allocations: 74.47 kB / 468.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004654/0.3829, allocations: 1.481 MB / 469.9 MB, free: 3.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003433/0.3833, allocations: 335.8 kB / 470.2 MB, free: 3.312 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.3848, allocations: 1.427 MB / 471.7 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005794/0.3906, allocations: 4.004 MB / 475.7 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3906, allocations: 3.938 kB / 475.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3906, allocations: 0 / 475.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001032/0.3907, allocations: 0 / 475.7 MB, free: 0.9922 MB / 366.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.006839/0.3975, allocations: 3.962 MB / 479.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3976, allocations: 8.781 kB / 479.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.3977, allocations: 98.59 kB / 479.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005979/0.3983, allocations: 430.4 kB / 480.2 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003824/0.4021, allocations: 2.507 MB / 482.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.4022, allocations: 42.09 kB / 482.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.4023, allocations: 55.66 kB / 482.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.4037, allocations: 0.7295 MB / 483.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.4037, allocations: 1.172 kB / 483.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.678e-05/0.4038, allocations: 19.44 kB / 483.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.4038, allocations: 21.45 kB / 483.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.4054, allocations: 0.8165 MB / 484.4 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006044/0.4114, allocations: 3.104 MB / 487.5 MB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.4127, allocations: 0.5236 MB / 488 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009581/0.4136, allocations: 0.5659 MB / 488.5 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03286/0.4465, allocations: 30.13 MB / 0.5065 GB, free: 7.586 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008225/0.4473, allocations: 373.6 kB / 0.5069 GB, free: 7.211 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.816e-06/0.4473, allocations: 0 / 0.5069 GB, free: 7.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002644/0.4499, allocations: 1.124 MB / 0.508 GB, free: 6.078 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.45, allocations: 63.41 kB / 0.508 GB, free: 6.004 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004289/0.4543, allocations: 3.09 MB / 0.511 GB, free: 2.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.878e-05/0.4544, allocations: 29.7 kB / 0.5111 GB, free: 2.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/0.4559, allocations: 1.587 MB / 0.5126 GB, free: 1.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.4561, allocations: 173.6 kB / 0.5128 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003519/0.4565, allocations: 226.4 kB / 0.513 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.4567, allocations: 341.9 kB / 0.5133 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/0.4573, allocations: 245.9 kB / 0.5136 GB, free: 324 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009424/0.4583, allocations: 0.6059 MB / 0.5142 GB, free: 15.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.4599, allocations: 0.9012 MB / 0.515 GB, free: 14.47 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.4599, allocations: 4 kB / 0.515 GB, free: 14.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002477/0.4624, allocations: 1.264 MB / 0.5163 GB, free: 13.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.4624, allocations: 15.94 kB / 0.5163 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000126/0.4625, allocations: 80 kB / 0.5164 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.4626, allocations: 19.94 kB / 0.5164 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000778/0.4634, allocations: 199.7 kB / 0.5166 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.233e-05/0.4634, allocations: 32.61 kB / 0.5166 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.4647, allocations: 107.5 kB / 0.5167 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.4648, allocations: 68 kB / 0.5168 GB, free: 12.69 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.0008069/0.4656, allocations: 446.2 kB / 0.5172 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/0.4661, allocations: 429.2 kB / 0.5176 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002812/0.4689, allocations: 1.208 MB / 0.5188 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.4689, allocations: 4 kB / 0.5188 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.4689, allocations: 3.938 kB / 0.5188 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.4689, allocations: 7.359 kB / 0.5188 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.4728, allocations: 2.152 MB / 0.5209 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001039/0.473, allocations: 68 kB / 0.521 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.4735, allocations: 99.91 kB / 0.5211 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.4735, allocations: 4 kB / 0.5211 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.833e-05/0.4735, allocations: 28 kB / 0.5211 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4735, allocations: 3.938 kB / 0.5211 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.4735, allocations: 4 kB / 0.5211 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.476, allocations: 1.347 MB / 0.5224 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009415/0.4769, allocations: 0.5022 MB / 0.5229 GB, free: 6.297 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003049/0.4772, allocations: 12 kB / 0.5229 GB, free: 6.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007034/0.478, allocations: 23.97 kB / 0.5229 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.4781, allocations: 63.94 kB / 0.523 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.75e-05/0.4782, allocations: 36 kB / 0.523 GB, free: 6.164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002787/0.481, allocations: 2.007 MB / 0.525 GB, free: 4.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.481, allocations: 4.062 kB / 0.525 GB, free: 4.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001584/0.4826, allocations: 0.6008 MB / 0.5256 GB, free: 3.559 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.003942/0.4865, allocations: 2.575 MB / 0.5281 GB, free: 1.098 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.4882, allocations: 0.7705 MB / 0.5289 GB, free: 308 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4882, allocations: 3.938 kB / 0.5289 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008278/0.489, allocations: 431.7 kB / 0.5293 GB, free: 15.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.4918, allocations: 0.6344 MB / 0.5299 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02599/0.5178, allocations: 17.06 MB / 0.5466 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/0.5192, allocations: 1.706 MB / 0.5482 GB, free: 11.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.5203, allocations: 361.3 kB / 0.5486 GB, free: 11.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.5217, allocations: 1.269 MB / 0.5498 GB, free: 10.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5217, allocations: 0 / 0.5498 GB, free: 10.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1219/0.6435, allocations: 63.19 MB / 0.6115 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.18, allocations: 3.75 kB / 0.6115 GB, free: 11.49 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.70146500924602]