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.001215/0.001215, 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.001058/0.001058, 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.8905/0.8905, allocations: 177.1 MB / 204.3 MB, free: 5.746 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.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 2.194e-06/2.194e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.324e-05/2.544e-05, allocations: 2.281 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009432/0.009458, allocations: 12.91 MB / 337.5 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01799/0.02745, allocations: 17.97 MB / 355.4 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002345/0.02979, allocations: 134.5 kB / 355.6 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003079/0.03287, allocations: 1.172 MB / 356.7 MB, free: 15.63 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008665/0.04154, allocations: 2.483 MB / 359.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005226/0.04676, allocations: 1.429 MB / 360.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009926/0.05669, allocations: 6.913 MB / 367.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008923/0.05758, allocations: 266.2 kB / 367.8 MB, free: 4.469 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002241/0.05982, allocations: 1.613 MB / 369.4 MB, free: 2.852 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.06086, allocations: 0.8173 MB / 370.3 MB, free: 2.031 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002369/0.06109, allocations: 76 kB / 370.3 MB, free: 1.957 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003066/0.06416, allocations: 1.21 MB / 371.5 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.06443, allocations: 333.5 kB / 371.9 MB, free: 428 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.0656, allocations: 0.7671 MB / 372.6 MB, free: 15.64 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004635/0.07023, allocations: 3.955 MB / 376.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.07024, allocations: 3.984 kB / 376.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.07024, allocations: 4 kB / 376.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001535/0.07039, allocations: 0 / 376.6 MB, free: 11.67 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.00444/0.07483, allocations: 3.843 MB / 380.4 MB, free: 7.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.07489, allocations: 15.97 kB / 380.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.07499, allocations: 98.5 kB / 380.6 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003956/0.07538, allocations: 433.3 kB / 381 MB, free: 7.223 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/0.07797, allocations: 2.345 MB / 383.3 MB, free: 4.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.07801, allocations: 37 kB / 383.4 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.07815, allocations: 59.89 kB / 383.4 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009537/0.0791, allocations: 0.7343 MB / 384.2 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.07912, allocations: 0 / 384.2 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.07916, allocations: 23.94 kB / 384.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.07918, allocations: 19.98 kB / 384.2 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009822/0.08016, allocations: 0.8202 MB / 385 MB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003576/0.08374, allocations: 2.891 MB / 387.9 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007312/0.08447, allocations: 0.5125 MB / 388.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000599/0.08507, allocations: 0.5728 MB / 389 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0158/0.1009, allocations: 13.72 MB / 402.7 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005103/0.1014, allocations: 373.9 kB / 403.1 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.1014, allocations: 4 kB / 403.1 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001529/0.1029, allocations: 1.128 MB / 404.2 MB, free: 15.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.103, allocations: 63.41 kB / 404.3 MB, free: 15.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/0.1059, allocations: 3.114 MB / 407.4 MB, free: 12.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.106, allocations: 29.7 kB / 407.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009076/0.1069, allocations: 1.582 MB / 409 MB, free: 10.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.107, allocations: 174.6 kB / 409.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.1072, allocations: 222.4 kB / 409.4 MB, free: 10.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.682e-05/0.1073, allocations: 337.9 kB / 409.7 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.1076, allocations: 249.9 kB / 410 MB, free: 9.617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004865/0.1081, allocations: 0.5979 MB / 410.6 MB, free: 8.848 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.1092, allocations: 0.8945 MB / 411.4 MB, free: 7.781 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.443e-06/0.1092, allocations: 4 kB / 411.5 MB, free: 7.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001422/0.1107, allocations: 1.275 MB / 412.7 MB, free: 6.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1107, allocations: 8 kB / 412.7 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.476e-05/0.1108, allocations: 80 kB / 412.8 MB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.1108, allocations: 20.72 kB / 412.8 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.1112, allocations: 203.6 kB / 413 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.1112, allocations: 31.86 kB / 413.1 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.1118, allocations: 111.3 kB / 413.2 MB, free: 6.055 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.748e-05/0.1119, allocations: 60 kB / 413.2 MB, free: 5.996 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.0005846/0.1125, allocations: 454.5 kB / 413.7 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002521/0.1127, allocations: 425.3 kB / 414.1 MB, free: 5.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.1143, allocations: 1.204 MB / 415.3 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.1143, allocations: 8 kB / 415.3 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1143, allocations: 0 / 415.3 MB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1143, allocations: 3.984 kB / 415.3 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.1166, allocations: 2.069 MB / 417.4 MB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.762e-05/0.1167, allocations: 71.94 kB / 417.4 MB, free: 1.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.1169, allocations: 91.98 kB / 417.5 MB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.1169, allocations: 0 / 417.5 MB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.117, allocations: 39.98 kB / 417.6 MB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.117, allocations: 3.938 kB / 417.6 MB, free: 1.562 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.117, allocations: 0 / 417.6 MB, free: 1.562 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.1188, allocations: 1.344 MB / 418.9 MB, free: 196 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005992/0.1194, allocations: 439.2 kB / 419.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.1196, allocations: 8 kB / 419.4 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.1199, allocations: 28.03 kB / 419.4 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.1201, allocations: 63.92 kB / 419.4 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-05/0.1201, allocations: 36 kB / 419.5 MB, free: 15.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002202/0.1223, allocations: 2.01 MB / 421.5 MB, free: 13.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1223, allocations: 0 / 421.5 MB, free: 13.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001207/0.1235, allocations: 0.6083 MB / 422.1 MB, free: 13.02 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.002638/0.1262, allocations: 2.621 MB / 424.7 MB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.1275, allocations: 0.7797 MB / 425.5 MB, free: 9.559 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1275, allocations: 0 / 425.5 MB, free: 9.559 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/0.128, allocations: 427.5 kB / 425.9 MB, free: 9.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/0.13, allocations: 0.6357 MB / 426.6 MB, free: 8.477 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02088/0.1508, allocations: 16.97 MB / 443.5 MB, free: 6.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007561/0.1516, allocations: 1.165 MB / 444.7 MB, free: 5.777 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008208/0.1524, allocations: 361.3 kB / 445 MB, free: 5.418 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/0.1536, allocations: 1.266 MB / 446.3 MB, free: 4.152 MB / 410.7 MB Notification: Performance of SimCode: time 2.174e-06/0.1536, allocations: 4 kB / 446.3 MB, free: 4.148 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.222/0.3756, allocations: 66.52 MB / 0.5008 GB, free: 62.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.184/9.559, allocations: 16.22 kB / 0.5008 GB, free: 62.15 MB / 410.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/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: 11.411161799915135]