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.001301/0.001301, allocations: 112.2 kB / 21.22 MB, free: 0.7266 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.001402/0.001402, allocations: 212.2 kB / 24.53 MB, free: 4.062 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 8.031 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 47.92 kB / 378.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2273, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01573/0.2431, allocations: 15.38 MB / 447.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02554/0.2686, allocations: 20.86 MB / 468.2 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.271, allocations: 138.5 kB / 468.3 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003452/0.2745, allocations: 1.266 MB / 469.6 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007747/0.2822, allocations: 2.417 MB / 472 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004221/0.2864, allocations: 1.461 MB / 473.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.2968, allocations: 6.727 MB / 480.2 MB, free: 6.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005871/0.2973, allocations: 274.2 kB / 480.4 MB, free: 6.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.2989, allocations: 1.182 MB / 481.6 MB, free: 4.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001412/0.3003, allocations: 1.145 MB / 482.8 MB, free: 3.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.3005, allocations: 72 kB / 482.8 MB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003781/0.3043, allocations: 1.479 MB / 484.3 MB, free: 2.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003692/0.3047, allocations: 337.5 kB / 484.6 MB, free: 1.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.3062, allocations: 1.432 MB / 486.1 MB, free: 476 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006078/0.3123, allocations: 4.005 MB / 490.1 MB, free: 12.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3123, allocations: 0 / 490.1 MB, free: 12.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3123, allocations: 4 kB / 490.1 MB, free: 12.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.65e-05/0.3124, allocations: 0 / 490.1 MB, free: 12.44 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.006058/0.3184, allocations: 3.89 MB / 494 MB, free: 8.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3185, allocations: 12.03 kB / 494 MB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.227e-05/0.3185, allocations: 13 kB / 494 MB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.3186, allocations: 98.52 kB / 494.1 MB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004608/0.3191, allocations: 433.3 kB / 494.5 MB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003599/0.3227, allocations: 2.341 MB / 496.9 MB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.3227, allocations: 41 kB / 496.9 MB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.3228, allocations: 59.94 kB / 496.9 MB, free: 5.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.3242, allocations: 0.7304 MB / 497.7 MB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3242, allocations: 0 / 497.7 MB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.3243, allocations: 20 kB / 497.7 MB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.3243, allocations: 23.92 kB / 497.7 MB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.3259, allocations: 0.8202 MB / 498.5 MB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005132/0.3311, allocations: 3.047 MB / 0.4898 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.3322, allocations: 0.528 MB / 0.4903 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009816/0.3332, allocations: 0.5614 MB / 0.4909 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02493/0.3581, allocations: 13.79 MB / 0.5044 GB, free: 1.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007768/0.3589, allocations: 373.5 kB / 0.5047 GB, free: 1.027 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.3589, allocations: 4 kB / 0.5047 GB, free: 1.023 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002331/0.3613, allocations: 1.126 MB / 0.5058 GB, free: 15.89 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.3613, allocations: 59.41 kB / 0.5059 GB, free: 15.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00451/0.3658, allocations: 3.083 MB / 0.5089 GB, free: 12.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.366, allocations: 41.64 kB / 0.5089 GB, free: 12.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.3675, allocations: 1.589 MB / 0.5105 GB, free: 11.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.3677, allocations: 182.6 kB / 0.5107 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003285/0.368, allocations: 226.4 kB / 0.5109 GB, free: 10.69 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3682, allocations: 345.9 kB / 0.5112 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.3688, allocations: 241.9 kB / 0.5114 GB, free: 10.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009302/0.3698, allocations: 0.6018 MB / 0.512 GB, free: 9.332 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.3713, allocations: 0.9013 MB / 0.5129 GB, free: 8.258 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.3713, allocations: 4 kB / 0.5129 GB, free: 8.254 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002329/0.3736, allocations: 1.263 MB / 0.5141 GB, free: 6.984 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.3736, allocations: 12 kB / 0.5141 GB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.3738, allocations: 83.98 kB / 0.5142 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.889e-05/0.3738, allocations: 16 kB / 0.5142 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006909/0.3745, allocations: 203.6 kB / 0.5144 GB, free: 6.676 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/0.3745, allocations: 19.94 kB / 0.5145 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009777/0.3755, allocations: 115.5 kB / 0.5146 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.3756, allocations: 64 kB / 0.5146 GB, free: 6.48 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.0008033/0.3764, allocations: 459 kB / 0.5151 GB, free: 6.023 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004177/0.3768, allocations: 417.3 kB / 0.5155 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002607/0.3794, allocations: 1.211 MB / 0.5166 GB, free: 4.395 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.3794, allocations: 8 kB / 0.5167 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3794, allocations: 3.938 kB / 0.5167 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3794, allocations: 0 / 0.5167 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003385/0.3828, allocations: 2.126 MB / 0.5187 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.284e-05/0.3829, allocations: 68 kB / 0.5188 GB, free: 2.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/0.3834, allocations: 91.98 kB / 0.5189 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3834, allocations: 0 / 0.5189 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-05/0.3834, allocations: 35.98 kB / 0.5189 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.3834, allocations: 3.938 kB / 0.5189 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3835, allocations: 0 / 0.5189 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.3857, allocations: 1.347 MB / 0.5202 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007922/0.3865, allocations: 439.1 kB / 0.5207 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/0.3868, allocations: 15.98 kB / 0.5207 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.3875, allocations: 23.97 kB / 0.5207 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.3876, allocations: 67.86 kB / 0.5208 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.979e-05/0.3877, allocations: 36 kB / 0.5208 GB, free: 60 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002576/0.3903, allocations: 2.01 MB / 0.5228 GB, free: 14.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3903, allocations: 0 / 0.5228 GB, free: 14.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001292/0.3915, allocations: 0.6048 MB / 0.5233 GB, free: 13.45 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.003661/0.3952, allocations: 2.573 MB / 0.5259 GB, free: 10.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3968, allocations: 0.7713 MB / 0.5266 GB, free: 10.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3968, allocations: 0 / 0.5266 GB, free: 10.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007626/0.3975, allocations: 427.5 kB / 0.527 GB, free: 9.602 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.4, allocations: 0.6501 MB / 0.5277 GB, free: 8.949 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2028/0.6028, allocations: 17.04 MB / 0.5443 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007115/0.6035, allocations: 1.714 MB / 0.546 GB, free: 99.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000843/0.6044, allocations: 364.5 kB / 0.5463 GB, free: 99.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008544/0.6052, allocations: 1.263 MB / 0.5476 GB, free: 98.68 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6052, allocations: 0 / 0.5476 GB, free: 98.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08503/0.6902, allocations: 63.88 MB / 0.6099 GB, free: 38.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.11/18.8, allocations: 11.2 kB / 0.6099 GB, free: 38.57 MB / 446.1 MB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 22.56979176303139]