Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.001682, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002074/0.002074, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.88 kB / 378.8 MB, free: 2.809 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2646, allocations: 53.36 MB / 432.1 MB, free: 7.094 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01469/0.2793, allocations: 14.25 MB / 446.4 MB, free: 8.789 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.02519/0.3045, allocations: 20.41 MB / 466.8 MB, free: 4.297 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001992/0.3065, allocations: 193.8 kB / 467 MB, free: 4.105 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.002846/0.3093, allocations: 1.131 MB / 468.1 MB, free: 2.973 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.009238/0.3186, allocations: 2.343 MB / 470.4 MB, free: 0.6094 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.005051/0.3236, allocations: 1.457 MB / 471.9 MB, free: 15.15 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01053/0.3341, allocations: 6.54 MB / 478.4 MB, free: 8.59 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005554/0.3347, allocations: 257 kB / 478.7 MB, free: 8.305 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.3363, allocations: 1.132 MB / 479.8 MB, free: 7.168 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.3376, allocations: 1.083 MB / 480.9 MB, free: 6.078 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.3378, allocations: 76 kB / 481 MB, free: 6.004 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004149/0.3419, allocations: 1.487 MB / 482.5 MB, free: 4.516 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000347/0.3423, allocations: 317.7 kB / 482.8 MB, free: 4.203 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001392/0.3437, allocations: 1.32 MB / 484.1 MB, free: 2.875 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005032/0.3487, allocations: 3.714 MB / 487.8 MB, free: 15.14 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3487, allocations: 0 / 487.8 MB, free: 15.14 MB / 398.1 MB
Notification: Performance of FrontEnd: time 3.667e-06/0.3487, allocations: 0 / 487.8 MB, free: 15.14 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.902e-05/0.3488, allocations: 0 / 487.8 MB, free: 15.14 MB / 398.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.006185/0.3549, allocations: 3.614 MB / 491.4 MB, free: 11.48 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.355, allocations: 8.031 kB / 491.4 MB, free: 11.47 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.3554, allocations: 393.5 kB / 491.8 MB, free: 11.08 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003898/0.3593, allocations: 2.382 MB / 494.2 MB, free: 8.602 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.3594, allocations: 41 kB / 494.2 MB, free: 8.559 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.3595, allocations: 48 kB / 494.3 MB, free: 8.512 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.3612, allocations: 0.7538 MB / 495 MB, free: 7.754 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.3612, allocations: 0 / 495 MB, free: 7.754 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.83e-05/0.3613, allocations: 23.98 kB / 495.1 MB, free: 7.73 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.3613, allocations: 20 kB / 495.1 MB, free: 7.711 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001974/0.3633, allocations: 0.8592 MB / 495.9 MB, free: 6.848 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00522/0.3685, allocations: 2.918 MB / 498.9 MB, free: 3.867 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.3703, allocations: 0.7246 MB / 499.6 MB, free: 3.137 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.3719, allocations: 0.8713 MB / 0.4887 GB, free: 2.27 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02716/0.3991, allocations: 13.75 MB / 0.5022 GB, free: 4.133 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.4004, allocations: 0.5996 MB / 0.5027 GB, free: 3.52 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=96): time 3.166e-06/0.4004, allocations: 0 / 0.5027 GB, free: 3.52 MB / 414.1 MB
Notification: Performance of matching and sorting (n=99): time 0.0132/0.4136, allocations: 4.525 MB / 0.5072 GB, free: 14.93 MB / 430.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.4136, allocations: 60.41 kB / 0.5072 GB, free: 14.86 MB / 430.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003629/0.4173, allocations: 2.704 MB / 0.5099 GB, free: 12.14 MB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 9.377e-05/0.4174, allocations: 41.7 kB / 0.5099 GB, free: 12.09 MB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.4186, allocations: 1.304 MB / 0.5112 GB, free: 10.79 MB / 430.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.419, allocations: 357 kB / 0.5115 GB, free: 10.43 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003768/0.4193, allocations: 234.4 kB / 0.5117 GB, free: 10.2 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001598/0.4195, allocations: 341.9 kB / 0.5121 GB, free: 9.859 MB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.4209, allocations: 486 kB / 0.5125 GB, free: 9.387 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.4224, allocations: 0.6508 MB / 0.5132 GB, free: 8.668 MB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/0.4252, allocations: 1.13 MB / 0.5143 GB, free: 7.473 MB / 430.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4252, allocations: 0 / 0.5143 GB, free: 7.473 MB / 430.1 MB
Notification: Performance of matching and sorting (n=133) (initialization): time 0.004413/0.4296, allocations: 1.839 MB / 0.5161 GB, free: 5.594 MB / 430.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.4297, allocations: 11.94 kB / 0.5161 GB, free: 5.582 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/0.4298, allocations: 120 kB / 0.5162 GB, free: 5.465 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0007497/0.4306, allocations: 260.5 kB / 0.5164 GB, free: 5.18 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009222/0.4315, allocations: 199.7 kB / 0.5166 GB, free: 4.984 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/0.4423, allocations: 13.23 MB / 0.5295 GB, free: 6.613 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.4437, allocations: 87.97 kB / 0.5296 GB, free: 6.527 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.4438, allocations: 59.98 kB / 0.5297 GB, free: 6.469 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.0008965/0.4447, allocations: 425.5 kB / 0.5301 GB, free: 6.043 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.4452, allocations: 389.6 kB / 0.5305 GB, free: 5.66 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00519/0.4504, allocations: 2.052 MB / 0.5325 GB, free: 3.57 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.4504, allocations: 8 kB / 0.5325 GB, free: 3.562 MB / 446.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4504, allocations: 4 kB / 0.5325 GB, free: 3.559 MB / 446.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.4504, allocations: 11.97 kB / 0.5325 GB, free: 3.547 MB / 446.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.4524, allocations: 1.511 MB / 0.534 GB, free: 1.988 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001603/0.4525, allocations: 116 kB / 0.5341 GB, free: 1.875 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007706/0.4533, allocations: 139.8 kB / 0.5342 GB, free: 1.738 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0006872/0.454, allocations: 264.3 kB / 0.5345 GB, free: 1.449 MB / 446.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-05/0.4541, allocations: 43.98 kB / 0.5345 GB, free: 1.406 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2155/0.6696, allocations: 13.22 MB / 0.5474 GB, free: 92.66 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.6696, allocations: 1.531 kB / 0.5474 GB, free: 92.66 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005285/0.6749, allocations: 2.41 MB / 0.5498 GB, free: 91.94 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0008131/0.6757, allocations: 434.1 kB / 0.5502 GB, free: 91.88 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002974/0.676, allocations: 17.2 kB / 0.5502 GB, free: 91.87 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009885/0.677, allocations: 82.69 kB / 0.5503 GB, free: 91.86 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/0.6773, allocations: 143.8 kB / 0.5504 GB, free: 91.82 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.916e-05/0.6774, allocations: 52.34 kB / 0.5505 GB, free: 91.82 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.002237/0.6797, allocations: 1.764 MB / 0.5522 GB, free: 91.18 MB / 446.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.6797, allocations: 1.031 kB / 0.5522 GB, free: 91.18 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.001483/0.6811, allocations: 0.6599 MB / 0.5528 GB, free: 91.14 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.001004/0.6821, allocations: 0.8175 MB / 0.5536 GB, free: 90.97 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.003546/0.6857, allocations: 2.459 MB / 0.556 GB, free: 89.38 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6857, allocations: 0 / 0.556 GB, free: 89.38 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002154/0.6879, allocations: 1.897 MB / 0.5579 GB, free: 87.94 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.6901, allocations: 0.6121 MB / 0.5585 GB, free: 87.71 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005404/0.6955, allocations: 4.765 MB / 0.5631 GB, free: 85.25 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007468/0.6963, allocations: 1.654 MB / 0.5648 GB, free: 83.99 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.001013/0.6973, allocations: 389.4 kB / 0.5651 GB, free: 83.67 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.6976, allocations: 175.4 kB / 0.5653 GB, free: 83.5 MB / 446.1 MB
Notification: Performance of SimCode: time 8.62e-07/0.6976, allocations: 0 / 0.5653 GB, free: 83.5 MB / 446.1 MB
Notification: Performance of Templates: time 0.05082/0.7484, allocations: 37.96 MB / 0.6024 GB, free: 45.8 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.265445735305548]