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.001328/0.001328, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001437/0.001437, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.434/1.434, allocations: 230.6 MB / 258.2 MB, free: 7.797 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: 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.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 43.92 kB / 378.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2128, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01443/0.2273, allocations: 12.9 MB / 445.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0243/0.2516, allocations: 17.97 MB / 463.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002169/0.2537, allocations: 134.6 kB / 463.3 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.2569, allocations: 1.151 MB / 464.5 MB, free: 6.426 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006888/0.2638, allocations: 2.413 MB / 466.9 MB, free: 3.992 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00414/0.2679, allocations: 1.414 MB / 468.3 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.2781, allocations: 6.724 MB / 475 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000581/0.2786, allocations: 282.2 kB / 475.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001595/0.2802, allocations: 1.19 MB / 476.5 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.2816, allocations: 1.145 MB / 477.6 MB, free: 9.176 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.2818, allocations: 72 kB / 477.7 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003172/0.285, allocations: 1.241 MB / 478.9 MB, free: 7.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003318/0.2853, allocations: 337.5 kB / 479.3 MB, free: 7.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.2864, allocations: 1.044 MB / 480.3 MB, free: 6.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00481/0.2912, allocations: 4.044 MB / 484.4 MB, free: 2.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2912, allocations: 0 / 484.4 MB, free: 2.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2912, allocations: 0 / 484.4 MB, free: 2.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.463e-05/0.2912, allocations: 0 / 484.4 MB, free: 2.418 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.005917/0.2972, allocations: 3.89 MB / 488.3 MB, free: 14.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2972, allocations: 8.031 kB / 488.3 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004798/0.2977, allocations: 433.3 kB / 488.7 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003824/0.3015, allocations: 2.349 MB / 491 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.576e-05/0.3015, allocations: 40.98 kB / 491.1 MB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.3017, allocations: 51.95 kB / 491.1 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.3032, allocations: 0.7382 MB / 491.9 MB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.3032, allocations: 0 / 491.9 MB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/0.3033, allocations: 16 kB / 491.9 MB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.773e-05/0.3033, allocations: 23.98 kB / 491.9 MB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.305, allocations: 0.8241 MB / 492.7 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005456/0.3105, allocations: 2.804 MB / 495.5 MB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.3118, allocations: 0.5125 MB / 496 MB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3128, allocations: 0.5653 MB / 496.6 MB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02767/0.3405, allocations: 13.73 MB / 0.4984 GB, free: 7.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008325/0.3413, allocations: 369.7 kB / 0.4987 GB, free: 7.461 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.3413, allocations: 0 / 0.4987 GB, free: 7.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002414/0.3437, allocations: 1.122 MB / 0.4998 GB, free: 6.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.3438, allocations: 67.34 kB / 0.4999 GB, free: 6.254 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003964/0.3477, allocations: 3.11 MB / 0.5029 GB, free: 3.145 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/0.3478, allocations: 29.7 kB / 0.5029 GB, free: 3.109 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.3493, allocations: 1.585 MB / 0.5045 GB, free: 1.516 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.3495, allocations: 174.6 kB / 0.5047 GB, free: 1.344 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/0.3498, allocations: 238.4 kB / 0.5049 GB, free: 1.105 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3499, allocations: 337.9 kB / 0.5052 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.3506, allocations: 241.9 kB / 0.5054 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009144/0.3515, allocations: 0.6018 MB / 0.506 GB, free: 15.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.353, allocations: 0.8935 MB / 0.5069 GB, free: 14.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.353, allocations: 8 kB / 0.5069 GB, free: 14.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002377/0.3554, allocations: 1.267 MB / 0.5081 GB, free: 13.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3554, allocations: 12.03 kB / 0.5082 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/0.3556, allocations: 83.98 kB / 0.5082 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.342e-05/0.3556, allocations: 20 kB / 0.5083 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007718/0.3564, allocations: 203.6 kB / 0.5085 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.627e-05/0.3564, allocations: 23.92 kB / 0.5085 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.3574, allocations: 115.2 kB / 0.5086 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.3575, allocations: 71.98 kB / 0.5087 GB, free: 12.89 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.0007912/0.3583, allocations: 453.5 kB / 0.5091 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/0.3587, allocations: 417.3 kB / 0.5095 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.3615, allocations: 1.203 MB / 0.5107 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.3615, allocations: 8 kB / 0.5107 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3616, allocations: 3.938 kB / 0.5107 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3616, allocations: 7.938 kB / 0.5107 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003599/0.3652, allocations: 1.992 MB / 0.5126 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001045/0.3653, allocations: 68 kB / 0.5127 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005231/0.3658, allocations: 87.86 kB / 0.5128 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.3658, allocations: 4 kB / 0.5128 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.64e-05/0.3659, allocations: 35.98 kB / 0.5128 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3659, allocations: 0 / 0.5128 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3659, allocations: 4.062 kB / 0.5128 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/0.3684, allocations: 1.343 MB / 0.5141 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000941/0.3693, allocations: 443 kB / 0.5145 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003159/0.3696, allocations: 12 kB / 0.5146 GB, free: 6.746 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007111/0.3703, allocations: 23.97 kB / 0.5146 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.3705, allocations: 67.86 kB / 0.5146 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-05/0.3706, allocations: 36 kB / 0.5147 GB, free: 6.621 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002719/0.3733, allocations: 2.007 MB / 0.5166 GB, free: 4.621 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3733, allocations: 0 / 0.5166 GB, free: 4.621 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0014/0.3747, allocations: 0.6087 MB / 0.5172 GB, free: 4.012 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.001266/0.3759, allocations: 0.7768 MB / 0.518 GB, free: 3.227 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.3777, allocations: 0.7716 MB / 0.5187 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3777, allocations: 0 / 0.5187 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008258/0.3785, allocations: 431.1 kB / 0.5192 GB, free: 1.984 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/0.3811, allocations: 0.6358 MB / 0.5198 GB, free: 1.344 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006841/0.3879, allocations: 4.589 MB / 0.5243 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/0.3891, allocations: 1.166 MB / 0.5254 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001083/0.3902, allocations: 357.3 kB / 0.5257 GB, free: 11.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.3904, allocations: 151.4 kB / 0.5259 GB, free: 11 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3904, allocations: 0 / 0.5259 GB, free: 11 MB / 446.1 MB Notification: Performance of Templates: time 0.2292/0.6196, allocations: 37.81 MB / 0.5628 GB, free: 87.41 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.751191699004266]