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.000899/0.000899, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001345/0.001345, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9087/0.9087, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 1.643e-06/1.643e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/2.028e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008442/0.008463, allocations: 12.41 MB / 337 MB, free: 3.492 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01768/0.02614, allocations: 17.92 MB / 354.9 MB, free: 1.5 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.02794, allocations: 134.6 kB / 355 MB, free: 1.367 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.03003, allocations: 1.133 MB / 356.1 MB, free: 232 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005693/0.03573, allocations: 2.436 MB / 358.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003349/0.03908, allocations: 1.437 MB / 360 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00609/0.04517, allocations: 6.773 MB / 366.8 MB, free: 5.531 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000477/0.04564, allocations: 261.8 kB / 367 MB, free: 5.25 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001492/0.04714, allocations: 1.562 MB / 368.6 MB, free: 3.684 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007858/0.04792, allocations: 0.7979 MB / 369.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.04807, allocations: 75.94 kB / 369.5 MB, free: 2.809 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002027/0.05009, allocations: 1.206 MB / 370.7 MB, free: 1.602 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.05027, allocations: 333.5 kB / 371 MB, free: 1.273 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005425/0.05081, allocations: 0.7437 MB / 371.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002981/0.05379, allocations: 3.756 MB / 375.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.05379, allocations: 7.938 kB / 375.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.05379, allocations: 0 / 375.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.983e-05/0.05386, allocations: 0 / 375.5 MB, free: 12.75 MB / 346.7 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.003619/0.05748, allocations: 3.69 MB / 379.2 MB, free: 9.004 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.05752, allocations: 12.03 kB / 379.2 MB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.804e-05/0.0576, allocations: 102.5 kB / 379.3 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.05786, allocations: 417.4 kB / 379.7 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002325/0.06019, allocations: 2.295 MB / 382 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.06021, allocations: 37 kB / 382.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.605e-05/0.0603, allocations: 51.94 kB / 382.1 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008362/0.06113, allocations: 0.7304 MB / 382.8 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.06114, allocations: 0 / 382.8 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.06119, allocations: 23.98 kB / 382.9 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.06121, allocations: 23.98 kB / 382.9 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009481/0.06215, allocations: 0.8163 MB / 383.7 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003144/0.0653, allocations: 2.84 MB / 386.5 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006822/0.06598, allocations: 0.5202 MB / 387.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005478/0.06653, allocations: 0.5767 MB / 387.6 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01576/0.08229, allocations: 13.71 MB / 401.3 MB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.08281, allocations: 370 kB / 401.7 MB, free: 1.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.08281, allocations: 3.938 kB / 401.7 MB, free: 1.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001414/0.08422, allocations: 1.108 MB / 402.8 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.08427, allocations: 63.39 kB / 402.9 MB, free: 0.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/0.08688, allocations: 2.95 MB / 405.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.08693, allocations: 37.7 kB / 405.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008218/0.08775, allocations: 1.491 MB / 407.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.0879, allocations: 174.6 kB / 407.5 MB, free: 12.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.0881, allocations: 226.3 kB / 407.8 MB, free: 11.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.544e-05/0.0882, allocations: 337.9 kB / 408.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.0886, allocations: 245.9 kB / 408.3 MB, free: 11.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004693/0.08907, allocations: 0.6017 MB / 408.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000839/0.0899, allocations: 0.9022 MB / 409.8 MB, free: 9.379 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.08991, allocations: 4 kB / 409.8 MB, free: 9.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00137/0.09128, allocations: 1.24 MB / 411.1 MB, free: 8.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.0913, allocations: 12 kB / 411.1 MB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.827e-05/0.09137, allocations: 84.81 kB / 411.2 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.0914, allocations: 16 kB / 411.2 MB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004035/0.0918, allocations: 203.7 kB / 411.4 MB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/0.09182, allocations: 31.86 kB / 411.4 MB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005884/0.09241, allocations: 103.3 kB / 411.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.819e-05/0.09248, allocations: 68 kB / 411.6 MB, free: 7.621 MB / 378.7 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.0005242/0.09301, allocations: 426.5 kB / 412 MB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.09326, allocations: 409.4 kB / 412.4 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.09487, allocations: 1.198 MB / 413.6 MB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.09488, allocations: 8 kB / 413.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.09488, allocations: 0 / 413.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.09489, allocations: 0 / 413.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.09707, allocations: 2.023 MB / 415.6 MB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.017e-05/0.09712, allocations: 68 kB / 415.7 MB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.09738, allocations: 99.91 kB / 415.8 MB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.09739, allocations: 4 kB / 415.8 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.09742, allocations: 28 kB / 415.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.09743, allocations: 0 / 415.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.09743, allocations: 4 kB / 415.8 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.0988, allocations: 1.32 MB / 417.1 MB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006005/0.0994, allocations: 415.2 kB / 417.5 MB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.0996, allocations: 12.06 kB / 417.6 MB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.09996, allocations: 31.97 kB / 417.6 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.1001, allocations: 63.92 kB / 417.7 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.011e-05/0.1001, allocations: 39.98 kB / 417.7 MB, free: 1.391 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001733/0.1019, allocations: 1.899 MB / 419.6 MB, free: 15.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1019, allocations: 0 / 419.6 MB, free: 15.49 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001015/0.1029, allocations: 0.593 MB / 420.2 MB, free: 14.9 MB / 394.7 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.002346/0.1052, allocations: 2.595 MB / 422.8 MB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009997/0.1062, allocations: 0.7793 MB / 423.6 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1062, allocations: 0 / 423.6 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004349/0.1067, allocations: 423.9 kB / 424 MB, free: 11.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.1082, allocations: 0.6076 MB / 424.6 MB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/0.127, allocations: 16.36 MB / 440.9 MB, free: 9.512 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007202/0.1277, allocations: 1.117 MB / 442.1 MB, free: 8.363 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007256/0.1285, allocations: 361.1 kB / 442.4 MB, free: 8.004 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008039/0.1293, allocations: 1.215 MB / 443.6 MB, free: 6.789 MB / 410.7 MB Notification: Performance of SimCode: time 2.315e-06/0.1293, allocations: 0 / 443.6 MB, free: 6.789 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2264/0.3557, allocations: 64.27 MB / 0.496 GB, free: 66.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.043/9.399, allocations: 5.625 kB / 0.496 GB, free: 66.44 MB / 410.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/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: 11.271181953139603]