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.001741/0.001741, allocations: 108.6 kB / 21.18 MB, free: 0.7578 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.001991/0.001991, allocations: 189.2 kB / 24.48 MB, free: 4.16 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.4/1.4, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 47.92 kB / 371.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2673, allocations: 52.19 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01642/0.2837, allocations: 15.36 MB / 439.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02687/0.3106, allocations: 20.82 MB / 460.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002869/0.3134, allocations: 130.6 kB / 460.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003809/0.3173, allocations: 1.278 MB / 461.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008362/0.3256, allocations: 2.413 MB / 463.9 MB, free: 6.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004848/0.3305, allocations: 1.457 MB / 465.3 MB, free: 5.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.3421, allocations: 6.649 MB / 472 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008119/0.3429, allocations: 274.2 kB / 472.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001935/0.3449, allocations: 1.178 MB / 473.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.3465, allocations: 1.153 MB / 474.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002103/0.3467, allocations: 72 kB / 474.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004668/0.3514, allocations: 1.479 MB / 476.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004714/0.3519, allocations: 337.5 kB / 476.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.3538, allocations: 1.428 MB / 477.9 MB, free: 8.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006782/0.3606, allocations: 4.001 MB / 481.9 MB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3606, allocations: 0 / 481.9 MB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3606, allocations: 0 / 481.9 MB, free: 4.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.845e-05/0.3606, allocations: 0 / 481.9 MB, free: 4.414 MB / 382.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.006243/0.3669, allocations: 3.886 MB / 485.8 MB, free: 480 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3669, allocations: 12.02 kB / 485.8 MB, free: 468 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004859/0.3674, allocations: 441.2 kB / 486.2 MB, free: 24 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004025/0.3714, allocations: 2.349 MB / 488.6 MB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.3715, allocations: 33 kB / 488.6 MB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.3716, allocations: 55.95 kB / 488.7 MB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.373, allocations: 0.7343 MB / 489.4 MB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.3731, allocations: 0 / 489.4 MB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.94e-05/0.3731, allocations: 27.94 kB / 489.4 MB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/0.3731, allocations: 19.98 kB / 489.4 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.3748, allocations: 0.8202 MB / 490.3 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.3802, allocations: 3.039 MB / 493.3 MB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3814, allocations: 0.5164 MB / 493.8 MB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009785/0.3824, allocations: 0.5769 MB / 494.4 MB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02608/0.4085, allocations: 13.78 MB / 0.4963 GB, free: 9.508 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007838/0.4093, allocations: 361.7 kB / 0.4966 GB, free: 9.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.716e-06/0.4093, allocations: 0 / 0.4966 GB, free: 9.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002326/0.4116, allocations: 1.13 MB / 0.4977 GB, free: 8.004 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.4117, allocations: 59.41 kB / 0.4978 GB, free: 7.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003826/0.4155, allocations: 3.09 MB / 0.5008 GB, free: 4.844 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.167e-05/0.4155, allocations: 33.7 kB / 0.5008 GB, free: 4.805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.4171, allocations: 1.578 MB / 0.5024 GB, free: 3.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.4173, allocations: 186.6 kB / 0.5025 GB, free: 3.035 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/0.4176, allocations: 230.3 kB / 0.5028 GB, free: 2.805 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4178, allocations: 337.9 kB / 0.5031 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005953/0.4184, allocations: 241.9 kB / 0.5033 GB, free: 2.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/0.4192, allocations: 0.5979 MB / 0.5039 GB, free: 1.453 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.4206, allocations: 0.8974 MB / 0.5048 GB, free: 392 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.4206, allocations: 7.938 kB / 0.5048 GB, free: 384 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002237/0.4229, allocations: 1.266 MB / 0.506 GB, free: 15.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.4229, allocations: 11.28 kB / 0.506 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/0.423, allocations: 83.98 kB / 0.5061 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.486e-05/0.4231, allocations: 20 kB / 0.5061 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.4238, allocations: 204.2 kB / 0.5063 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.381e-05/0.4238, allocations: 23.94 kB / 0.5063 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009065/0.4247, allocations: 119.2 kB / 0.5065 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.4248, allocations: 60 kB / 0.5065 GB, free: 14.59 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.0007413/0.4256, allocations: 453.4 kB / 0.5069 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003938/0.4259, allocations: 417.4 kB / 0.5073 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/0.4286, allocations: 1.215 MB / 0.5085 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.4286, allocations: 4 kB / 0.5085 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.4286, allocations: 0 / 0.5085 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.4286, allocations: 3.984 kB / 0.5085 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003463/0.432, allocations: 2.115 MB / 0.5106 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001008/0.4321, allocations: 72.06 kB / 0.5107 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004757/0.4326, allocations: 95.8 kB / 0.5108 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.4326, allocations: 4 kB / 0.5108 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.4327, allocations: 35.97 kB / 0.5108 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.4327, allocations: 4 kB / 0.5108 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4327, allocations: 0 / 0.5108 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.435, allocations: 1.347 MB / 0.5121 GB, free: 8.742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008777/0.4358, allocations: 435.1 kB / 0.5125 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002954/0.4361, allocations: 12 kB / 0.5125 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006618/0.4368, allocations: 23.97 kB / 0.5126 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.4369, allocations: 71.8 kB / 0.5126 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.901e-05/0.437, allocations: 36.06 kB / 0.5127 GB, free: 8.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002671/0.4397, allocations: 2.014 MB / 0.5146 GB, free: 6.168 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4397, allocations: 0 / 0.5146 GB, free: 6.168 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001348/0.441, allocations: 0.5969 MB / 0.5152 GB, free: 5.57 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.001121/0.4422, allocations: 0.7691 MB / 0.516 GB, free: 4.793 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.4437, allocations: 0.7826 MB / 0.5167 GB, free: 3.984 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4438, allocations: 0 / 0.5167 GB, free: 3.984 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.4445, allocations: 431.2 kB / 0.5171 GB, free: 3.539 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/0.447, allocations: 0.632 MB / 0.5178 GB, free: 2.902 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006667/0.4536, allocations: 4.661 MB / 0.5223 GB, free: 14.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.4549, allocations: 1.718 MB / 0.524 GB, free: 12.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.4552, allocations: 155.4 kB / 0.5241 GB, free: 12.29 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4552, allocations: 0 / 0.5241 GB, free: 12.29 MB / 446.1 MB Notification: Performance of Templates: time 0.2321/0.6874, allocations: 38.77 MB / 0.562 GB, free: 93.8 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.247732564108446]