Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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.001669/0.001669, allocations: 112.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.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.001999/0.001999, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.455/1.455, allocations: 225.6 MB / 252.5 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.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002481/0.002481, allocations: 47.92 kB / 370.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2447, allocations: 52.19 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01517/0.2599, allocations: 14.25 MB / 437.4 MB, free: 392 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02486/0.2848, allocations: 20.38 MB / 457.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.2866, allocations: 193.8 kB / 457.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00264/0.2893, allocations: 1.13 MB / 459.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006692/0.296, allocations: 2.335 MB / 461.4 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005191/0.3012, allocations: 1.457 MB / 462.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.3122, allocations: 6.462 MB / 469.3 MB, free: 316 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006288/0.3128, allocations: 249 kB / 469.6 MB, free: 32 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3146, allocations: 1.132 MB / 470.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.316, allocations: 1.091 MB / 471.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.3162, allocations: 79.94 kB / 471.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004029/0.3202, allocations: 1.475 MB / 473.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003655/0.3206, allocations: 321.7 kB / 473.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.3221, allocations: 1.32 MB / 475 MB, free: 10.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006321/0.3284, allocations: 3.706 MB / 478.7 MB, free: 6.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3284, allocations: 0 / 478.7 MB, free: 6.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3284, allocations: 4 kB / 478.7 MB, free: 6.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.54e-05/0.3285, allocations: 0 / 478.7 MB, free: 6.871 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.006157/0.3346, allocations: 3.606 MB / 482.3 MB, free: 3.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3347, allocations: 8.031 kB / 482.3 MB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004808/0.3352, allocations: 401.5 kB / 482.7 MB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004186/0.3393, allocations: 2.378 MB / 485.1 MB, free: 340 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.3394, allocations: 33 kB / 485.1 MB, free: 304 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.3395, allocations: 63.88 kB / 485.1 MB, free: 240 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.3413, allocations: 0.7578 MB / 485.9 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3413, allocations: 0 / 485.9 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.3413, allocations: 20 kB / 485.9 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.3414, allocations: 23.98 kB / 485.9 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.3433, allocations: 0.8592 MB / 486.8 MB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005394/0.3487, allocations: 2.922 MB / 489.7 MB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.3506, allocations: 0.7285 MB / 490.5 MB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/0.3522, allocations: 0.8589 MB / 491.3 MB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02718/0.3794, allocations: 13.72 MB / 0.4932 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.3807, allocations: 0.5957 MB / 0.4938 GB, free: 11.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.615e-06/0.3807, allocations: 4 kB / 0.4938 GB, free: 11.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01293/0.3936, allocations: 4.525 MB / 0.4982 GB, free: 6.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.3937, allocations: 68.33 kB / 0.4983 GB, free: 6.602 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/0.3971, allocations: 2.692 MB / 0.5009 GB, free: 3.895 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.93e-05/0.3972, allocations: 45.7 kB / 0.5009 GB, free: 3.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.3984, allocations: 1.308 MB / 0.5022 GB, free: 2.531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.3987, allocations: 356.9 kB / 0.5026 GB, free: 2.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003799/0.3991, allocations: 234.5 kB / 0.5028 GB, free: 1.945 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3993, allocations: 341.9 kB / 0.5031 GB, free: 1.605 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.4006, allocations: 478 kB / 0.5036 GB, free: 1.141 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.4022, allocations: 0.6392 MB / 0.5042 GB, free: 440 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002869/0.405, allocations: 1.137 MB / 0.5053 GB, free: 15.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-06/0.405, allocations: 4 kB / 0.5053 GB, free: 15.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004297/0.4093, allocations: 1.834 MB / 0.5071 GB, free: 13.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.4093, allocations: 15.44 kB / 0.5071 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/0.4095, allocations: 120 kB / 0.5072 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007314/0.4102, allocations: 268.4 kB / 0.5075 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009334/0.4112, allocations: 195.7 kB / 0.5077 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/0.422, allocations: 13.22 MB / 0.5206 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.4234, allocations: 87.89 kB / 0.5207 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.4236, allocations: 60.06 kB / 0.5207 GB, free: 14.23 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008676/0.4244, allocations: 429.5 kB / 0.5211 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/0.4248, allocations: 385.6 kB / 0.5215 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00519/0.43, allocations: 2.06 MB / 0.5235 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.43, allocations: 12 kB / 0.5235 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4301, allocations: 4 kB / 0.5235 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.4301, allocations: 3.984 kB / 0.5235 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.432, allocations: 1.522 MB / 0.525 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001574/0.4322, allocations: 112 kB / 0.5251 GB, free: 9.625 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007838/0.4329, allocations: 139.8 kB / 0.5253 GB, free: 9.488 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006936/0.4336, allocations: 264.3 kB / 0.5255 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.775e-05/0.4337, allocations: 43.98 kB / 0.5256 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1978/0.6315, allocations: 13.22 MB / 0.5385 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.6315, allocations: 0.5938 kB / 0.5385 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005787/0.6373, allocations: 2.407 MB / 0.5408 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009733/0.6383, allocations: 443.1 kB / 0.5412 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/0.6386, allocations: 18.09 kB / 0.5413 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.6396, allocations: 84.41 kB / 0.5413 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/0.64, allocations: 141.4 kB / 0.5415 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.6401, allocations: 54.84 kB / 0.5415 GB, free: 104.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002175/0.6423, allocations: 1.779 MB / 0.5433 GB, free: 104.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6423, allocations: 0 / 0.5433 GB, free: 104.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001536/0.6438, allocations: 0.6441 MB / 0.5439 GB, free: 104.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/0.6448, allocations: 0.8065 MB / 0.5447 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00368/0.6485, allocations: 2.45 MB / 0.5471 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6485, allocations: 0 / 0.5471 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002128/0.6506, allocations: 1.905 MB / 0.5489 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.6529, allocations: 0.6165 MB / 0.5495 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005307/0.6582, allocations: 4.764 MB / 0.5542 GB, free: 98.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007499/0.6589, allocations: 1.657 MB / 0.5558 GB, free: 97.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009756/0.6599, allocations: 395.1 kB / 0.5562 GB, free: 96.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002721/0.6602, allocations: 163.4 kB / 0.5563 GB, free: 96.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6602, allocations: 0 / 0.5563 GB, free: 96.61 MB / 446.1 MB Notification: Performance of Templates: time 0.05232/0.7125, allocations: 37.94 MB / 0.5934 GB, free: 58.98 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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: 6.368372434750199]