Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.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.001323/0.001323, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001468/0.001468, allocations: 170 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9803/0.9803, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] 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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.562e-06/1.562e-06, allocations: 0 / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.973e-05, allocations: 2.312 kB / 273.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008941/0.008961, allocations: 13.27 MB / 286.8 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1215/0.1304, allocations: 19.46 MB / 306.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.1322, allocations: 192.6 kB / 306.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002068/0.1343, allocations: 1.075 MB / 307.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005538/0.1398, allocations: 2.355 MB / 309.8 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003872/0.1437, allocations: 1.415 MB / 311.2 MB, free: 7.727 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006146/0.1499, allocations: 6.779 MB / 318 MB, free: 4.391 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005168/0.1504, allocations: 282.5 kB / 318.3 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002389/0.1528, allocations: 3.011 MB / 321.3 MB, free: 1.195 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007859/0.1536, allocations: 0.8175 MB / 322.1 MB, free: 384 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.1537, allocations: 72 kB / 322.2 MB, free: 312 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002861/0.1566, allocations: 1.26 MB / 323.5 MB, free: 15.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.1568, allocations: 333.7 kB / 323.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006715/0.1574, allocations: 0.7243 MB / 324.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002816/0.1602, allocations: 2.763 MB / 327.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1603, allocations: 0 / 327.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1603, allocations: 0 / 327.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.173e-05/0.1603, allocations: 0 / 327.3 MB, free: 11.21 MB / 282.7 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.0031/0.1634, allocations: 3.535 MB / 330.8 MB, free: 7.633 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.1635, allocations: 15.97 kB / 330.8 MB, free: 7.617 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002873/0.1637, allocations: 267.7 kB / 331.1 MB, free: 7.355 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.1657, allocations: 2.118 MB / 333.2 MB, free: 5.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.1658, allocations: 33 kB / 333.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.721e-05/0.1658, allocations: 59.92 kB / 333.3 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.1664, allocations: 475.5 kB / 333.8 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1664, allocations: 0 / 333.8 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1664, allocations: 27.94 kB / 333.8 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.1664, allocations: 19.98 kB / 333.8 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.1668, allocations: 215.8 kB / 334 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1688, allocations: 1.45 MB / 335.5 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006835/0.1695, allocations: 390.8 kB / 335.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004693/0.17, allocations: 0.5012 MB / 336.3 MB, free: 1.926 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02303/0.193, allocations: 22.87 MB / 359.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.1934, allocations: 366.1 kB / 359.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.514e-06/0.1934, allocations: 0 / 359.6 MB, free: 9.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003614/0.197, allocations: 2.227 MB / 361.8 MB, free: 7.543 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.197, allocations: 68.34 kB / 361.9 MB, free: 7.461 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.1987, allocations: 2.425 MB / 364.3 MB, free: 5.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.1987, allocations: 37.7 kB / 364.3 MB, free: 4.977 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/0.1991, allocations: 0.5997 MB / 364.9 MB, free: 4.371 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.1993, allocations: 349 kB / 365.3 MB, free: 4.027 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.1994, allocations: 190.3 kB / 365.5 MB, free: 3.836 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.1995, allocations: 353.8 kB / 365.8 MB, free: 3.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.1997, allocations: 118.3 kB / 365.9 MB, free: 3.371 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.1999, allocations: 306.6 kB / 366.2 MB, free: 3.004 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.2004, allocations: 0.5164 MB / 366.7 MB, free: 2.418 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.2004, allocations: 4 kB / 366.7 MB, free: 2.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0009612/0.2014, allocations: 0.8858 MB / 367.6 MB, free: 1.492 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.2014, allocations: 8 kB / 367.6 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.24e-05/0.2015, allocations: 19.98 kB / 367.7 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/0.2018, allocations: 220.7 kB / 367.9 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.2022, allocations: 191.7 kB / 368.1 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004943/0.2071, allocations: 11.82 MB / 379.9 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005016/0.2076, allocations: 59.95 kB / 379.9 MB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.2077, allocations: 28 kB / 380 MB, free: 4.273 MB / 330.7 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.0003065/0.208, allocations: 177.6 kB / 380.1 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.2082, allocations: 263.6 kB / 380.4 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.2097, allocations: 1.18 MB / 381.6 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2097, allocations: 11.94 kB / 381.6 MB, free: 2.605 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2097, allocations: 4 kB / 381.6 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2097, allocations: 3.984 kB / 381.6 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.2105, allocations: 0.88 MB / 382.5 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.401e-05/0.2106, allocations: 12 kB / 382.5 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.2109, allocations: 119.8 kB / 382.6 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000315/0.2112, allocations: 228.2 kB / 382.8 MB, free: 1.316 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.007e-05/0.2112, allocations: 23.23 kB / 382.8 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004657/0.2159, allocations: 11.81 MB / 394.7 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2159, allocations: 0 / 394.7 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.217, allocations: 1.048 MB / 395.7 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003918/0.2174, allocations: 381.4 kB / 396.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.2176, allocations: 23.98 kB / 396.1 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/0.218, allocations: 51.89 kB / 396.1 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.2182, allocations: 120.7 kB / 396.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.982e-05/0.2183, allocations: 27.97 kB / 396.3 MB, free: 2.926 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000816/0.2191, allocations: 1.302 MB / 397.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2191, allocations: 0 / 397.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009701/0.22, allocations: 0.6596 MB / 398.3 MB, free: 0.9531 MB / 346.7 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.0009763/0.221, allocations: 0.9739 MB / 399.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.2224, allocations: 1.736 MB / 401 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.433e-05/0.2225, allocations: 32 kB / 401 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008274/0.2233, allocations: 1.513 MB / 402.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.2245, allocations: 0.6296 MB / 403.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.2283, allocations: 4.122 MB / 407.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.2286, allocations: 412.9 kB / 407.7 MB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006578/0.2293, allocations: 391.4 kB / 408 MB, free: 6.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008618/0.2301, allocations: 0.6006 MB / 408.6 MB, free: 6.141 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2301, allocations: 0 / 408.6 MB, free: 6.141 MB / 362.7 MB Notification: Performance of Templates: time 0.1453/0.3755, allocations: 44.26 MB / 452.9 MB, free: 103.4 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7475480418652296]