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.001301/0.001301, allocations: 107.9 kB / 18.48 MB, free: 4.543 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.00142/0.00142, allocations: 198.5 kB / 21.43 MB, free: 1.609 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.447/1.447, allocations: 225.6 MB / 249.8 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 43.92 kB / 366.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01717/0.1242, allocations: 15.34 MB / 433.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2305/0.3547, allocations: 20.8 MB / 454.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003363/0.3581, allocations: 140.5 kB / 454.8 MB, free: 6.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00377/0.3619, allocations: 1.271 MB / 456 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009702/0.3716, allocations: 2.364 MB / 458.4 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006768/0.3783, allocations: 1.45 MB / 459.8 MB, free: 5.562 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.3904, allocations: 6.627 MB / 466.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009098/0.3913, allocations: 276.3 kB / 466.7 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.3933, allocations: 1.176 MB / 467.9 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001662/0.395, allocations: 1.15 MB / 469.1 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002739/0.3953, allocations: 79.44 kB / 469.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005154/0.4004, allocations: 1.474 MB / 470.6 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005912/0.401, allocations: 334.3 kB / 470.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002337/0.4034, allocations: 1.43 MB / 472.4 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00748/0.4108, allocations: 3.996 MB / 476.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.4108, allocations: 0.9062 kB / 476.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4109, allocations: 0 / 476.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001108/0.411, allocations: 4.969 kB / 476.4 MB, free: 0.9844 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.00677/0.4177, allocations: 3.964 MB / 480.3 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.4178, allocations: 10.94 kB / 480.3 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.032e-05/0.4178, allocations: 13.19 kB / 480.4 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.4179, allocations: 97.44 kB / 480.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006081/0.4186, allocations: 430.7 kB / 480.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00382/0.4224, allocations: 2.504 MB / 483.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.4224, allocations: 39.92 kB / 483.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.4225, allocations: 54.98 kB / 483.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.4239, allocations: 0.7412 MB / 484.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.4239, allocations: 0.5625 kB / 484.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-05/0.4239, allocations: 14.38 kB / 484.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.424, allocations: 26.73 kB / 484.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.4254, allocations: 0.8187 MB / 485.1 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005728/0.4312, allocations: 3.109 MB / 488.2 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.4323, allocations: 0.5122 MB / 488.7 MB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009056/0.4332, allocations: 0.5568 MB / 489.3 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03222/0.4654, allocations: 30.14 MB / 0.5072 GB, free: 7.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008468/0.4663, allocations: 362.6 kB / 0.5076 GB, free: 7.191 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.4663, allocations: 0 / 0.5076 GB, free: 7.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002808/0.4691, allocations: 1.134 MB / 0.5087 GB, free: 6.051 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.4692, allocations: 66.12 kB / 0.5087 GB, free: 5.977 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/0.4735, allocations: 3.087 MB / 0.5118 GB, free: 2.891 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4736, allocations: 29.7 kB / 0.5118 GB, free: 2.855 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.475, allocations: 1.588 MB / 0.5133 GB, free: 1.262 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002048/0.4752, allocations: 172.8 kB / 0.5135 GB, free: 1.098 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003367/0.4756, allocations: 234.4 kB / 0.5137 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.4757, allocations: 334 kB / 0.514 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006169/0.4763, allocations: 249.8 kB / 0.5143 GB, free: 292 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009149/0.4773, allocations: 0.602 MB / 0.5149 GB, free: 15.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.4788, allocations: 0.8917 MB / 0.5157 GB, free: 14.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.4788, allocations: 11.94 kB / 0.5157 GB, free: 14.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002691/0.4815, allocations: 1.258 MB / 0.517 GB, free: 13.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.4816, allocations: 24.75 kB / 0.517 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/0.4817, allocations: 80 kB / 0.5171 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.606e-05/0.4817, allocations: 19.98 kB / 0.5171 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007286/0.4824, allocations: 196.2 kB / 0.5173 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.644e-05/0.4825, allocations: 27.92 kB / 0.5173 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.4839, allocations: 111.3 kB / 0.5174 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.4841, allocations: 75.98 kB / 0.5175 GB, free: 12.65 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.000868/0.4849, allocations: 446.1 kB / 0.5179 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006042/0.4855, allocations: 422.1 kB / 0.5183 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002825/0.4884, allocations: 1.213 MB / 0.5195 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.4884, allocations: 4 kB / 0.5195 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4884, allocations: 0 / 0.5195 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4884, allocations: 0 / 0.5195 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004358/0.4927, allocations: 2.153 MB / 0.5216 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.942e-05/0.4928, allocations: 71.98 kB / 0.5217 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.4933, allocations: 92.42 kB / 0.5218 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.098e-05/0.4933, allocations: 12 kB / 0.5218 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/0.4934, allocations: 35.98 kB / 0.5218 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.4934, allocations: 2.562 kB / 0.5218 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.4934, allocations: 4 kB / 0.5218 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002924/0.4963, allocations: 1.34 MB / 0.5231 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/0.4978, allocations: 0.4983 MB / 0.5236 GB, free: 6.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004139/0.4982, allocations: 12.06 kB / 0.5236 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008114/0.499, allocations: 27.95 kB / 0.5236 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.4992, allocations: 59.95 kB / 0.5237 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.206e-05/0.4993, allocations: 39.98 kB / 0.5237 GB, free: 6.141 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003231/0.5025, allocations: 2.01 MB / 0.5257 GB, free: 4.137 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5025, allocations: 0 / 0.5257 GB, free: 4.137 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001607/0.5041, allocations: 0.5969 MB / 0.5263 GB, free: 3.539 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.004175/0.5083, allocations: 2.578 MB / 0.5288 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.5102, allocations: 0.7749 MB / 0.5296 GB, free: 280 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5102, allocations: 0 / 0.5296 GB, free: 280 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008183/0.511, allocations: 419 kB / 0.53 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/0.5146, allocations: 0.643 MB / 0.5306 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02685/0.5414, allocations: 17.06 MB / 0.5473 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.5428, allocations: 1.714 MB / 0.5489 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00111/0.544, allocations: 361.3 kB / 0.5493 GB, free: 11.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.5453, allocations: 1.261 MB / 0.5505 GB, free: 10.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5453, allocations: 4 kB / 0.5505 GB, free: 10.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1181/0.6634, allocations: 63.22 MB / 0.6122 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.79/16.45, allocations: 8.922 kB / 0.6123 GB, free: 11.44 MB / 0.5137 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.372634209052194]