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.001764/0.001764, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002285/0.002285, allocations: 209 kB / 24.48 MB, free: 3.938 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.452/1.452, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.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 0.001589/0.001589, allocations: 44.06 kB / 378.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2403, allocations: 53.38 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01411/0.2544, allocations: 11.98 MB / 444.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02413/0.2786, allocations: 17.58 MB / 461.9 MB, free: 9.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002281/0.2809, allocations: 189.9 kB / 462.1 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003219/0.2841, allocations: 1.031 MB / 463.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007672/0.2917, allocations: 2.324 MB / 465.4 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00465/0.2964, allocations: 1.418 MB / 466.8 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.3069, allocations: 6.536 MB / 473.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006213/0.3075, allocations: 241 kB / 473.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.3093, allocations: 1.143 MB / 474.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.3108, allocations: 1.04 MB / 475.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002194/0.311, allocations: 76 kB / 475.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.3144, allocations: 1.206 MB / 477.1 MB, free: 9.754 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003938/0.3148, allocations: 321.7 kB / 477.4 MB, free: 9.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.316, allocations: 0.9741 MB / 478.4 MB, free: 8.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005474/0.3215, allocations: 3.741 MB / 482.1 MB, free: 4.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3215, allocations: 7.938 kB / 482.1 MB, free: 4.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3215, allocations: 0 / 482.1 MB, free: 4.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.371e-05/0.3216, allocations: 0 / 482.1 MB, free: 4.691 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.005983/0.3276, allocations: 3.606 MB / 485.7 MB, free: 1.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3276, allocations: 8.031 kB / 485.7 MB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005093/0.3281, allocations: 397.5 kB / 486.1 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004315/0.3324, allocations: 2.374 MB / 488.5 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.975e-05/0.3325, allocations: 40.98 kB / 488.5 MB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.3326, allocations: 52 kB / 488.6 MB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.3342, allocations: 0.7538 MB / 489.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.3342, allocations: 4 kB / 489.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-05/0.3343, allocations: 20 kB / 489.4 MB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.3343, allocations: 19.98 kB / 489.4 MB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.3362, allocations: 0.8553 MB / 490.2 MB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005248/0.3414, allocations: 2.686 MB / 492.9 MB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.3432, allocations: 0.7207 MB / 493.6 MB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.3448, allocations: 0.8684 MB / 494.5 MB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.027/0.3718, allocations: 13.68 MB / 0.4963 GB, free: 10.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001285/0.3731, allocations: 0.6035 MB / 0.4969 GB, free: 9.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.256e-06/0.3731, allocations: 0 / 0.4969 GB, free: 9.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01249/0.3856, allocations: 4.513 MB / 0.5013 GB, free: 4.828 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.3856, allocations: 68.41 kB / 0.5013 GB, free: 4.746 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/0.3892, allocations: 2.696 MB / 0.504 GB, free: 2.035 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.3893, allocations: 45.7 kB / 0.504 GB, free: 1.984 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.3907, allocations: 1.304 MB / 0.5053 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003706/0.391, allocations: 356.9 kB / 0.5056 GB, free: 332 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.3914, allocations: 238.3 kB / 0.5059 GB, free: 88 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.3916, allocations: 349.9 kB / 0.5062 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.3929, allocations: 474 kB / 0.5066 GB, free: 15.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.3944, allocations: 0.6509 MB / 0.5073 GB, free: 14.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00287/0.3973, allocations: 1.133 MB / 0.5084 GB, free: 13.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3973, allocations: 0 / 0.5084 GB, free: 13.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004266/0.4016, allocations: 1.831 MB / 0.5102 GB, free: 11.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4016, allocations: 8.531 kB / 0.5102 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001803/0.4018, allocations: 127.9 kB / 0.5103 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007099/0.4025, allocations: 260.4 kB / 0.5105 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000918/0.4034, allocations: 195.7 kB / 0.5107 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.4142, allocations: 12.98 MB / 0.5234 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.4157, allocations: 92.02 kB / 0.5235 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.4159, allocations: 56 kB / 0.5236 GB, free: 12.74 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.0008737/0.4167, allocations: 430.2 kB / 0.524 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005143/0.4172, allocations: 389.6 kB / 0.5243 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005019/0.4223, allocations: 2.052 MB / 0.5263 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4223, allocations: 8 kB / 0.5263 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.4223, allocations: 4 kB / 0.5264 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4223, allocations: 7.984 kB / 0.5264 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.4243, allocations: 1.293 MB / 0.5276 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001763/0.4244, allocations: 127.9 kB / 0.5277 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.4252, allocations: 131.8 kB / 0.5279 GB, free: 8.234 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006833/0.4259, allocations: 264.3 kB / 0.5281 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.426, allocations: 43.98 kB / 0.5282 GB, free: 7.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2104/0.6364, allocations: 12.97 MB / 0.5408 GB, free: 98.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6364, allocations: 1.016 kB / 0.5408 GB, free: 98.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005663/0.642, allocations: 2.408 MB / 0.5432 GB, free: 98.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/0.6432, allocations: 440.3 kB / 0.5436 GB, free: 98.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005267/0.6437, allocations: 19.27 kB / 0.5436 GB, free: 98.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.645, allocations: 80.61 kB / 0.5437 GB, free: 98.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004111/0.6454, allocations: 147.6 kB / 0.5438 GB, free: 98.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.6455, allocations: 52.86 kB / 0.5439 GB, free: 98.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003426/0.6489, allocations: 1.772 MB / 0.5456 GB, free: 97.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6489, allocations: 0 / 0.5456 GB, free: 97.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001865/0.6508, allocations: 0.6539 MB / 0.5463 GB, free: 97.83 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.001268/0.6521, allocations: 0.8107 MB / 0.5471 GB, free: 97.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003616/0.6557, allocations: 2.458 MB / 0.5495 GB, free: 96.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6557, allocations: 0 / 0.5495 GB, free: 96.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.6578, allocations: 1.906 MB / 0.5513 GB, free: 94.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.6602, allocations: 0.6097 MB / 0.5519 GB, free: 94.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005554/0.6657, allocations: 4.822 MB / 0.5566 GB, free: 90.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.6664, allocations: 1.108 MB / 0.5577 GB, free: 89.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.6668, allocations: 175.1 kB / 0.5579 GB, free: 89.19 MB / 446.1 MB Notification: Performance of SimCode: time 1.273e-06/0.6668, allocations: 0 / 0.5579 GB, free: 89.19 MB / 446.1 MB Notification: Performance of Templates: time 0.1305/0.7973, allocations: 155.8 MB / 0.71 GB, free: 13.62 MB / 0.5137 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.428618039004505]