Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00165/0.00165, allocations: 110.5 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.001816/0.001816, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.491/1.491, allocations: 230.5 MB / 258.2 MB, free: 8.051 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-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 68.77 kB / 379 MB, free: 2.672 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.265, allocations: 53.37 MB / 432.4 MB, free: 6.984 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005676/0.2707, allocations: 4.281 MB / 436.7 MB, free: 2.688 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002398/0.2731, allocations: 1.226 MB / 437.9 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002825/0.2734, allocations: 15.94 kB / 437.9 MB, free: 1.441 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000274/0.2736, allocations: 110.8 kB / 438 MB, free: 1.332 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003401/0.274, allocations: 182.3 kB / 438.2 MB, free: 1.152 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006322/0.2746, allocations: 335.5 kB / 438.6 MB, free: 0.8242 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001074/0.2757, allocations: 1.089 MB / 439.6 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003289/0.276, allocations: 199.1 kB / 439.8 MB, free: 15.53 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004212/0.2764, allocations: 414.8 kB / 440.2 MB, free: 15.12 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005239/0.277, allocations: 466.2 kB / 440.7 MB, free: 14.67 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.2771, allocations: 120 kB / 440.8 MB, free: 14.55 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.2772, allocations: 120 kB / 440.9 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.2774, allocations: 223.4 kB / 441.1 MB, free: 14.21 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004069/0.2779, allocations: 450 kB / 441.6 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00116/0.279, allocations: 1.232 MB / 442.8 MB, free: 12.54 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.279, allocations: 0 / 442.8 MB, free: 12.54 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.643e-06/0.279, allocations: 3.938 kB / 442.8 MB, free: 12.54 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.231e-05/0.279, allocations: 4 kB / 442.8 MB, free: 12.54 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.002901/0.2819, allocations: 1.198 MB / 444 MB, free: 11.29 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.282, allocations: 8.031 kB / 444 MB, free: 11.28 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.2821, allocations: 92.41 kB / 444.1 MB, free: 11.19 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007653/0.2829, allocations: 428.1 kB / 444.5 MB, free: 10.74 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.283, allocations: 41.69 kB / 444.6 MB, free: 10.7 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2831, allocations: 60.38 kB / 444.6 MB, free: 10.64 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00219/0.2853, allocations: 0.9645 MB / 445.6 MB, free: 9.621 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.2853, allocations: 4 kB / 445.6 MB, free: 9.617 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.309e-05/0.2854, allocations: 24 kB / 445.6 MB, free: 9.594 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.2854, allocations: 19.94 kB / 445.7 MB, free: 9.574 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002805/0.2882, allocations: 0.9991 MB / 446.7 MB, free: 8.574 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.2932, allocations: 3.145 MB / 449.8 MB, free: 5.301 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.2954, allocations: 0.7427 MB / 450.5 MB, free: 4.551 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.2965, allocations: 423.9 kB / 451 MB, free: 4.137 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.81e-05/0.2966, allocations: 16.42 kB / 451 MB, free: 4.121 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.2978, allocations: 473 kB / 451.4 MB, free: 3.648 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=50): time 2.805e-06/0.2978, allocations: 0 / 451.4 MB, free: 3.648 MB / 350.1 MB
Notification: Performance of matching and sorting (n=50): time 0.003146/0.301, allocations: 1.092 MB / 452.5 MB, free: 2.547 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002309/0.3012, allocations: 380.2 kB / 452.9 MB, free: 2.09 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009246/0.3022, allocations: 0.5732 MB / 453.5 MB, free: 1.504 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.922e-05/0.3022, allocations: 37.7 kB / 453.5 MB, free: 1.461 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003132/0.3025, allocations: 376.5 kB / 453.9 MB, free: 1.09 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.3027, allocations: 186.5 kB / 454.1 MB, free: 0.9062 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002445/0.303, allocations: 134.6 kB / 454.2 MB, free: 0.7695 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002012/0.3032, allocations: 382.7 kB / 454.6 MB, free: 396 kB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.3044, allocations: 401.7 kB / 455 MB, free: 15.99 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.3057, allocations: 0.6733 MB / 455.6 MB, free: 15.19 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.3079, allocations: 0.9752 MB / 456.6 MB, free: 14.12 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.308, allocations: 7.938 kB / 456.6 MB, free: 14.11 MB / 366.1 MB
Notification: Performance of matching and sorting (n=91) (initialization): time 0.002819/0.3108, allocations: 1.14 MB / 457.7 MB, free: 12.95 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.78e-05/0.3108, allocations: 63.39 kB / 457.8 MB, free: 12.88 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.3109, allocations: 8 kB / 457.8 MB, free: 12.87 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.3109, allocations: 8 kB / 457.8 MB, free: 12.86 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.312, allocations: 223.9 kB / 458 MB, free: 12.64 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.982e-05/0.312, allocations: 15.92 kB / 458.1 MB, free: 12.62 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.313, allocations: 191.2 kB / 458.2 MB, free: 12.44 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.448e-05/0.3131, allocations: 32 kB / 458.3 MB, free: 12.41 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.0003317/0.3134, allocations: 225.6 kB / 458.5 MB, free: 12.18 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.3135, allocations: 71.56 kB / 458.6 MB, free: 12.11 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.3137, allocations: 74.41 kB / 458.6 MB, free: 12.03 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3137, allocations: 4 kB / 458.6 MB, free: 12.03 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3137, allocations: 3.938 kB / 458.6 MB, free: 12.02 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3137, allocations: 0 / 458.6 MB, free: 12.02 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003545/0.3173, allocations: 1.649 MB / 460.3 MB, free: 10.33 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3173, allocations: 0 / 460.3 MB, free: 10.33 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.318, allocations: 151.7 kB / 460.4 MB, free: 10.18 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 9.758e-06/0.3181, allocations: 4 kB / 460.4 MB, free: 10.18 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.3181, allocations: 15.98 kB / 460.5 MB, free: 10.16 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3181, allocations: 0 / 460.5 MB, free: 10.16 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3181, allocations: 0 / 460.5 MB, free: 10.16 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003355/0.3215, allocations: 1.303 MB / 461.8 MB, free: 8.836 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.3216, allocations: 79.47 kB / 461.8 MB, free: 8.758 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.3217, allocations: 15.98 kB / 461.9 MB, free: 8.742 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007233/0.3224, allocations: 103.9 kB / 462 MB, free: 8.641 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.3226, allocations: 52.3 kB / 462 MB, free: 8.59 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.232e-05/0.3226, allocations: 15.98 kB / 462 MB, free: 8.574 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.000662/0.3233, allocations: 402.8 kB / 462.4 MB, free: 8.184 MB / 366.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3233, allocations: 4 kB / 462.4 MB, free: 8.18 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0006077/0.3239, allocations: 179.8 kB / 462.6 MB, free: 8.004 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.0001803/0.324, allocations: 115.1 kB / 462.7 MB, free: 7.879 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.002456/0.3265, allocations: 0.9618 MB / 463.7 MB, free: 6.898 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.311e-05/0.3265, allocations: 8.312 kB / 463.7 MB, free: 6.891 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001036/0.3276, allocations: 394.2 kB / 464.1 MB, free: 6.504 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.3282, allocations: 106.2 kB / 464.2 MB, free: 6.402 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.3309, allocations: 1.258 MB / 465.4 MB, free: 5.121 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/0.3314, allocations: 0.8824 MB / 466.3 MB, free: 4.211 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.000432/0.3319, allocations: 84.84 kB / 466.4 MB, free: 4.129 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.3321, allocations: 55.42 kB / 466.4 MB, free: 4.074 MB / 366.1 MB
Notification: Performance of SimCode: time 1.052e-06/0.3321, allocations: 0 / 466.4 MB, free: 4.074 MB / 366.1 MB
Notification: Performance of Templates: time 0.02122/0.3533, allocations: 9.295 MB / 475.7 MB, free: 10.85 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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: 4.880581102333963]