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.00133/0.00133, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00153/0.00153, allocations: 210.7 kB / 23.74 MB, free: 4.66 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.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001528/0.001528, allocations: 43.92 kB / 377.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.274, allocations: 53.38 MB / 431.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01665/0.2907, allocations: 15.37 MB / 446.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02646/0.3172, allocations: 20.86 MB / 467.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002315/0.3195, allocations: 142.4 kB / 467.5 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003504/0.323, allocations: 1.269 MB / 468.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007904/0.3309, allocations: 2.417 MB / 471.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004707/0.3356, allocations: 1.461 MB / 472.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.347, allocations: 6.727 MB / 479.4 MB, free: 6.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008353/0.3478, allocations: 274.2 kB / 479.6 MB, free: 6.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002085/0.3499, allocations: 1.178 MB / 480.8 MB, free: 4.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.3515, allocations: 1.141 MB / 482 MB, free: 3.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001797/0.3516, allocations: 76 kB / 482 MB, free: 3.754 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004216/0.3558, allocations: 1.483 MB / 483.5 MB, free: 2.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003956/0.3562, allocations: 333.5 kB / 483.8 MB, free: 1.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.3578, allocations: 1.432 MB / 485.3 MB, free: 0.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006086/0.3639, allocations: 4.009 MB / 489.3 MB, free: 12.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3639, allocations: 0 / 489.3 MB, free: 12.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3639, allocations: 0 / 489.3 MB, free: 12.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.484e-05/0.364, allocations: 0 / 489.3 MB, free: 12.47 MB / 398.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.006032/0.37, allocations: 3.89 MB / 493.2 MB, free: 8.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.3701, allocations: 12.03 kB / 493.2 MB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.3702, allocations: 98.5 kB / 493.3 MB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005047/0.3707, allocations: 433.3 kB / 493.7 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003872/0.3746, allocations: 2.345 MB / 496.1 MB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.3746, allocations: 37 kB / 496.1 MB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.3748, allocations: 51.95 kB / 496.1 MB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.3762, allocations: 0.7343 MB / 496.9 MB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3762, allocations: 0 / 496.9 MB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.711e-05/0.3763, allocations: 20 kB / 496.9 MB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.3763, allocations: 19.98 kB / 496.9 MB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.3779, allocations: 0.8319 MB / 497.7 MB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005675/0.3836, allocations: 3.043 MB / 0.4891 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.3847, allocations: 0.5281 MB / 0.4896 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009664/0.3857, allocations: 0.5653 MB / 0.4901 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02634/0.412, allocations: 13.78 MB / 0.5036 GB, free: 1.461 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007882/0.4128, allocations: 373.6 kB / 0.5039 GB, free: 1.082 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.4128, allocations: 0 / 0.5039 GB, free: 1.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002411/0.4152, allocations: 1.13 MB / 0.505 GB, free: 15.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.4153, allocations: 63.39 kB / 0.5051 GB, free: 15.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004167/0.4195, allocations: 3.09 MB / 0.5081 GB, free: 12.78 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.857e-05/0.4195, allocations: 37.7 kB / 0.5082 GB, free: 12.74 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001523/0.4211, allocations: 1.585 MB / 0.5097 GB, free: 11.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.4213, allocations: 182.5 kB / 0.5099 GB, free: 10.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000311/0.4216, allocations: 230.4 kB / 0.5101 GB, free: 10.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4217, allocations: 334 kB / 0.5104 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005942/0.4223, allocations: 249.8 kB / 0.5107 GB, free: 10.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008841/0.4232, allocations: 0.6017 MB / 0.5112 GB, free: 9.379 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.4247, allocations: 0.9012 MB / 0.5121 GB, free: 8.305 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.4247, allocations: 4 kB / 0.5121 GB, free: 8.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002235/0.427, allocations: 1.262 MB / 0.5134 GB, free: 7.031 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.427, allocations: 8 kB / 0.5134 GB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001385/0.4271, allocations: 80.88 kB / 0.5134 GB, free: 6.945 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.282e-05/0.4272, allocations: 20 kB / 0.5135 GB, free: 6.926 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007394/0.4279, allocations: 199.7 kB / 0.5136 GB, free: 6.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.773e-05/0.4279, allocations: 31.86 kB / 0.5137 GB, free: 6.699 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.4289, allocations: 107.3 kB / 0.5138 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.429, allocations: 64 kB / 0.5138 GB, free: 6.531 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.0008338/0.4299, allocations: 461.4 kB / 0.5143 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004294/0.4303, allocations: 421.3 kB / 0.5147 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002679/0.433, allocations: 1.199 MB / 0.5159 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.433, allocations: 4 kB / 0.5159 GB, free: 4.445 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.433, allocations: 3.938 kB / 0.5159 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.433, allocations: 8 kB / 0.5159 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003648/0.4366, allocations: 2.118 MB / 0.5179 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001062/0.4368, allocations: 71.98 kB / 0.518 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.4372, allocations: 95.86 kB / 0.5181 GB, free: 2.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.4373, allocations: 0 / 0.5181 GB, free: 2.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.929e-05/0.4373, allocations: 28 kB / 0.5181 GB, free: 2.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.497e-06/0.4373, allocations: 11.98 kB / 0.5181 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4373, allocations: 4.062 kB / 0.5181 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.4397, allocations: 1.343 MB / 0.5195 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009034/0.4406, allocations: 447 kB / 0.5199 GB, free: 248 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.4409, allocations: 12 kB / 0.5199 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006586/0.4416, allocations: 32.02 kB / 0.5199 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.4417, allocations: 63.88 kB / 0.52 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.649e-05/0.4418, allocations: 39.98 kB / 0.52 GB, free: 100 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002919/0.4447, allocations: 2.007 MB / 0.522 GB, free: 14.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4447, allocations: 0 / 0.522 GB, free: 14.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001428/0.4462, allocations: 0.6008 MB / 0.5226 GB, free: 13.5 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.003826/0.45, allocations: 2.577 MB / 0.5251 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.4517, allocations: 0.7639 MB / 0.5258 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4517, allocations: 4.125 kB / 0.5258 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007912/0.4525, allocations: 434.9 kB / 0.5262 GB, free: 9.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.4551, allocations: 0.6319 MB / 0.5269 GB, free: 9.004 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2346/0.6897, allocations: 17.05 MB / 0.5435 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008603/0.6905, allocations: 1.709 MB / 0.5452 GB, free: 99.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001061/0.6916, allocations: 359.7 kB / 0.5455 GB, free: 99.76 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009718/0.6926, allocations: 1.266 MB / 0.5468 GB, free: 98.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6926, allocations: 0 / 0.5468 GB, free: 98.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1209/0.8135, allocations: 63.85 MB / 0.6091 GB, free: 38.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.08/20.9, allocations: 7.938 kB / 0.6091 GB, free: 38.69 MB / 446.1 MB " [Timeout remaining time 639] (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: 23.55931176300146]