Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001748/0.001748, allocations: 124.4 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.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.001896/0.001896, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.477/1.477, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.106, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2205/0.3264, allocations: 14.75 MB / 441.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0317/0.3581, allocations: 20.78 MB / 461.8 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00427/0.3624, allocations: 136.8 kB / 462 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005183/0.3676, allocations: 1.235 MB / 463.2 MB, free: 3.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01214/0.3797, allocations: 2.331 MB / 465.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009026/0.3888, allocations: 1.435 MB / 467 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01509/0.4038, allocations: 6.599 MB / 473.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.405, allocations: 265.4 kB / 473.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002858/0.4079, allocations: 1.147 MB / 475 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002222/0.4101, allocations: 1.111 MB / 476.1 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000312/0.4104, allocations: 74.75 kB / 476.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005854/0.4163, allocations: 1.478 MB / 477.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005868/0.4168, allocations: 326.8 kB / 478 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002327/0.4192, allocations: 1.367 MB / 479.3 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008262/0.4274, allocations: 3.803 MB / 483.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.4274, allocations: 0 / 483.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4274, allocations: 0 / 483.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001388/0.4276, allocations: 0 / 483.1 MB, free: 7.941 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.006933/0.4345, allocations: 3.809 MB / 486.9 MB, free: 4.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.4346, allocations: 8.031 kB / 486.9 MB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.4347, allocations: 102.5 kB / 487 MB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005474/0.4353, allocations: 409.4 kB / 487.4 MB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004284/0.4396, allocations: 2.46 MB / 489.9 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.625e-05/0.4396, allocations: 41 kB / 489.9 MB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.4398, allocations: 48 kB / 490 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.4413, allocations: 0.7226 MB / 490.7 MB, free: 188 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.4413, allocations: 0 / 490.7 MB, free: 188 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.542e-05/0.4414, allocations: 20 kB / 490.7 MB, free: 168 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.4414, allocations: 23.98 kB / 490.8 MB, free: 144 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.4431, allocations: 0.8202 MB / 491.6 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006633/0.4498, allocations: 3.06 MB / 494.6 MB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.4511, allocations: 0.5165 MB / 495.2 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.4522, allocations: 0.5723 MB / 495.7 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0332/0.4854, allocations: 30.75 MB / 0.5141 GB, free: 8.078 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000814/0.4862, allocations: 365.7 kB / 0.5145 GB, free: 7.711 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.4862, allocations: 0 / 0.5145 GB, free: 7.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002612/0.4888, allocations: 1.11 MB / 0.5156 GB, free: 6.594 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.4889, allocations: 59.41 kB / 0.5156 GB, free: 6.523 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00413/0.493, allocations: 2.935 MB / 0.5185 GB, free: 3.578 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.4931, allocations: 37.7 kB / 0.5185 GB, free: 3.535 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.4946, allocations: 1.495 MB / 0.52 GB, free: 2.031 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002531/0.4948, allocations: 174.6 kB / 0.5202 GB, free: 1.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003685/0.4952, allocations: 226.4 kB / 0.5204 GB, free: 1.633 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4954, allocations: 345.9 kB / 0.5207 GB, free: 1.289 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006549/0.496, allocations: 237.9 kB / 0.5209 GB, free: 1.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008992/0.4969, allocations: 0.602 MB / 0.5215 GB, free: 288 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.4985, allocations: 0.9012 MB / 0.5224 GB, free: 15.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.4985, allocations: 6.562 kB / 0.5224 GB, free: 15.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002463/0.501, allocations: 1.239 MB / 0.5236 GB, free: 13.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.501, allocations: 12 kB / 0.5236 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/0.5011, allocations: 83.98 kB / 0.5237 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.572e-05/0.5012, allocations: 16 kB / 0.5237 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.5019, allocations: 203.6 kB / 0.5239 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.738e-05/0.5019, allocations: 28.12 kB / 0.5239 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.5034, allocations: 119.2 kB / 0.5241 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.5035, allocations: 68 kB / 0.5241 GB, free: 13.44 MB / 446.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.0008955/0.5044, allocations: 425.5 kB / 0.5245 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006444/0.5051, allocations: 401.5 kB / 0.5249 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.5081, allocations: 1.197 MB / 0.5261 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.5081, allocations: 8 kB / 0.5261 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5081, allocations: 0 / 0.5261 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5081, allocations: 3.984 kB / 0.5261 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004189/0.5123, allocations: 2.092 MB / 0.5281 GB, free: 9.238 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001008/0.5124, allocations: 68 kB / 0.5282 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005157/0.5129, allocations: 103.9 kB / 0.5283 GB, free: 9.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.5129, allocations: 3.984 kB / 0.5283 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.415e-05/0.513, allocations: 32 kB / 0.5283 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.513, allocations: 4 kB / 0.5283 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.513, allocations: 0 / 0.5283 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.5157, allocations: 1.319 MB / 0.5296 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.5168, allocations: 498.4 kB / 0.5301 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004041/0.5172, allocations: 11.98 kB / 0.5301 GB, free: 7.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007939/0.518, allocations: 23.97 kB / 0.5301 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.5182, allocations: 63.89 kB / 0.5302 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.223e-05/0.5182, allocations: 39.98 kB / 0.5302 GB, free: 7.039 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00313/0.5214, allocations: 1.903 MB / 0.5321 GB, free: 5.137 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5214, allocations: 4.062 kB / 0.5321 GB, free: 5.133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001971/0.5233, allocations: 0.5891 MB / 0.5327 GB, free: 4.543 MB / 446.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.004279/0.5276, allocations: 2.548 MB / 0.5352 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.5294, allocations: 0.7746 MB / 0.5359 GB, free: 1.164 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5294, allocations: 4 kB / 0.5359 GB, free: 1.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008228/0.5302, allocations: 427.8 kB / 0.5363 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/0.5333, allocations: 0.6 MB / 0.5369 GB, free: 124 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02888/0.5622, allocations: 16.46 MB / 0.553 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/0.5637, allocations: 1.657 MB / 0.5546 GB, free: 13.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.565, allocations: 365.1 kB / 0.5549 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/0.5665, allocations: 1.214 MB / 0.5561 GB, free: 11.87 MB / 478.1 MB Notification: Performance of SimCode: time 2.405e-06/0.5665, allocations: 0 / 0.5561 GB, free: 11.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3267/0.8933, allocations: 61.07 MB / 0.6158 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.91/16.8, allocations: 7.297 kB / 0.6158 GB, free: 162.5 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_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_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.542034692000016]