Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.001396/0.001396, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001448/0.001448, allocations: 213.7 kB / 24.54 MB, free: 4.02 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.523/1.523, allocations: 230.3 MB / 258 MB, free: 8.238 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate")
translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 59.89 kB / 378.8 MB, free: 2.871 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2791, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006679/0.2857, allocations: 4.288 MB / 436.4 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003146/0.2889, allocations: 1.218 MB / 437.6 MB, free: 1.562 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000546/0.2894, allocations: 11.94 kB / 437.6 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.2898, allocations: 114.8 kB / 437.8 MB, free: 1.438 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004737/0.2903, allocations: 186.3 kB / 437.9 MB, free: 1.254 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008589/0.2911, allocations: 323.6 kB / 438.3 MB, free: 0.9375 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001295/0.2924, allocations: 1.097 MB / 439.4 MB, free: 15.83 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003759/0.2928, allocations: 195 kB / 439.5 MB, free: 15.64 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005041/0.2933, allocations: 422.8 kB / 440 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005752/0.2939, allocations: 462.2 kB / 440.4 MB, free: 14.77 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.000173/0.294, allocations: 120 kB / 440.5 MB, free: 14.66 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001682/0.2942, allocations: 116 kB / 440.6 MB, free: 14.54 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002459/0.2945, allocations: 235.3 kB / 440.9 MB, free: 14.31 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004602/0.2949, allocations: 442.1 kB / 441.3 MB, free: 13.88 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001446/0.2964, allocations: 1.232 MB / 442.5 MB, free: 12.65 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.2964, allocations: 0 / 442.5 MB, free: 12.65 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.613e-06/0.2964, allocations: 0 / 442.5 MB, free: 12.65 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 9.838e-06/0.2964, allocations: 4 kB / 442.5 MB, free: 12.64 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 147
 * Number of variables: 147
Notification: Performance of Generate backend data structure: time 0.00318/0.2996, allocations: 1.202 MB / 443.7 MB, free: 11.39 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2996, allocations: 8.031 kB / 443.7 MB, free: 11.38 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.2998, allocations: 84.42 kB / 443.8 MB, free: 11.3 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007972/0.3006, allocations: 428.1 kB / 444.2 MB, free: 10.86 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.456e-05/0.3006, allocations: 45.69 kB / 444.3 MB, free: 10.81 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.3007, allocations: 60.31 kB / 444.3 MB, free: 10.75 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.3032, allocations: 0.9723 MB / 445.3 MB, free: 9.723 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.3032, allocations: 7.938 kB / 445.3 MB, free: 9.715 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.958e-05/0.3033, allocations: 31.94 kB / 445.4 MB, free: 9.684 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.3033, allocations: 16 kB / 445.4 MB, free: 9.668 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003206/0.3066, allocations: 1.003 MB / 446.4 MB, free: 8.664 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007381/0.3139, allocations: 3.141 MB / 449.5 MB, free: 5.395 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.003684/0.3176, allocations: 0.7385 MB / 450.3 MB, free: 4.652 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.3196, allocations: 421.8 kB / 450.7 MB, free: 4.238 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.006e-05/0.3197, allocations: 24.42 kB / 450.7 MB, free: 4.215 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001981/0.3217, allocations: 465 kB / 451.1 MB, free: 3.75 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=50): time 4.468e-06/0.3217, allocations: 0 / 451.1 MB, free: 3.75 MB / 350.1 MB
Notification: Performance of matching and sorting (n=50): time 0.005523/0.3272, allocations: 1.1 MB / 452.2 MB, free: 2.641 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003213/0.3275, allocations: 372.3 kB / 452.6 MB, free: 2.191 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.329, allocations: 0.5732 MB / 453.2 MB, free: 1.605 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.3291, allocations: 45.64 kB / 453.2 MB, free: 1.555 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0004436/0.3295, allocations: 376.5 kB / 453.6 MB, free: 1.184 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.000267/0.3298, allocations: 178.5 kB / 453.8 MB, free: 1.008 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004067/0.3302, allocations: 142.6 kB / 453.9 MB, free: 0.8633 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002436/0.3305, allocations: 374.8 kB / 454.3 MB, free: 500 kB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.3323, allocations: 401.7 kB / 454.7 MB, free: 96 kB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/0.3348, allocations: 0.6772 MB / 455.3 MB, free: 15.29 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.003847/0.3386, allocations: 0.9673 MB / 456.3 MB, free: 14.23 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/0.3386, allocations: 7.938 kB / 456.3 MB, free: 14.22 MB / 366.1 MB
Notification: Performance of matching and sorting (n=91) (initialization): time 0.004644/0.3433, allocations: 1.14 MB / 457.5 MB, free: 13.06 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 9.09e-05/0.3434, allocations: 67.41 kB / 457.5 MB, free: 12.98 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.3434, allocations: 4 kB / 457.5 MB, free: 12.98 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.958e-05/0.3434, allocations: 12 kB / 457.5 MB, free: 12.96 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.345, allocations: 219.8 kB / 457.8 MB, free: 12.75 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.93e-05/0.345, allocations: 15.94 kB / 457.8 MB, free: 12.73 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.3467, allocations: 195.2 kB / 458 MB, free: 12.54 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.3468, allocations: 31.98 kB / 458 MB, free: 12.51 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 28
 * Number of states: 0 ()
 * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (89):
 * Single equations (assignments): 87
 * Array equations: 0
 * Algorithm blocks: 2
 * Record equations: 0
 * 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.0005346/0.3473, allocations: 229.5 kB / 458.2 MB, free: 12.28 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.3475, allocations: 67.58 kB / 458.3 MB, free: 12.21 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002278/0.3477, allocations: 74.41 kB / 458.4 MB, free: 12.14 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.3477, allocations: 8 kB / 458.4 MB, free: 12.13 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.3477, allocations: 3.938 kB / 458.4 MB, free: 12.12 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.3477, allocations: 3.984 kB / 458.4 MB, free: 12.12 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005202/0.3529, allocations: 1.633 MB / 460 MB, free: 10.44 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.353, allocations: 0 / 460 MB, free: 10.44 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.3541, allocations: 159.7 kB / 460.2 MB, free: 10.28 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3541, allocations: 0 / 460.2 MB, free: 10.28 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.3542, allocations: 12 kB / 460.2 MB, free: 10.27 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.3542, allocations: 4 kB / 460.2 MB, free: 10.27 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.3542, allocations: 0 / 460.2 MB, free: 10.27 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005167/0.3594, allocations: 1.311 MB / 461.5 MB, free: 8.934 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.3596, allocations: 71.47 kB / 461.6 MB, free: 8.863 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.3598, allocations: 12 kB / 461.6 MB, free: 8.852 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.3609, allocations: 107.9 kB / 461.7 MB, free: 8.746 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.3611, allocations: 56.28 kB / 461.7 MB, free: 8.691 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.5e-05/0.3612, allocations: 12 kB / 461.7 MB, free: 8.68 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0009532/0.3622, allocations: 402.8 kB / 462.1 MB, free: 8.289 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.7e-07/0.3622, allocations: 0 / 462.1 MB, free: 8.289 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.00108/0.3632, allocations: 183.8 kB / 462.3 MB, free: 8.109 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (Nand.C4.v,Nand.C7.v)
 * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count)
 * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (50):
 * Single equations (assignments): 46
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 4
 * 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.0002603/0.3635, allocations: 119.1 kB / 462.4 MB, free: 7.98 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.003952/0.3675, allocations: 0.9621 MB / 463.4 MB, free: 7 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3675, allocations: 0 / 463.4 MB, free: 7 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001713/0.3692, allocations: 394.2 kB / 463.8 MB, free: 6.613 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009702/0.3701, allocations: 110.2 kB / 463.9 MB, free: 6.508 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.3739, allocations: 1.254 MB / 465.1 MB, free: 5.23 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007101/0.3747, allocations: 0.8863 MB / 466 MB, free: 4.316 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.000604/0.3753, allocations: 80.86 kB / 466.1 MB, free: 4.238 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.3756, allocations: 59.42 kB / 466.2 MB, free: 4.18 MB / 366.1 MB
Notification: Performance of SimCode: time 1.532e-06/0.3756, allocations: 0 / 466.2 MB, free: 4.18 MB / 366.1 MB
Notification: Performance of Templates: time 0.02434/0.3999, allocations: 9.295 MB / 475.5 MB, free: 10.95 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.082233037799597]