Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 108 kB / 20.43 MB, free: 1.473 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002114/0.002114, allocations: 187.5 kB / 23.72 MB, free: 4.711 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 51.91 kB / 370.9 MB, free: 9.336 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.263, allocations: 52.18 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006189/0.2692, allocations: 4.263 MB / 427.4 MB, free: 10.38 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002499/0.2717, allocations: 1.187 MB / 428.6 MB, free: 9.184 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004372/0.2722, allocations: 11.94 kB / 428.6 MB, free: 9.172 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003448/0.2725, allocations: 114.9 kB / 428.7 MB, free: 9.059 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000566/0.2731, allocations: 182.3 kB / 428.9 MB, free: 8.879 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007693/0.2738, allocations: 327.5 kB / 429.2 MB, free: 8.559 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001318/0.2752, allocations: 1.101 MB / 430.3 MB, free: 7.457 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003695/0.2755, allocations: 195.1 kB / 430.5 MB, free: 7.262 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000538/0.2761, allocations: 414.8 kB / 430.9 MB, free: 6.855 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005472/0.2766, allocations: 470.2 kB / 431.4 MB, free: 6.395 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.2768, allocations: 120 kB / 431.5 MB, free: 6.277 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.277, allocations: 116 kB / 431.6 MB, free: 6.164 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.2772, allocations: 223.4 kB / 431.8 MB, free: 5.945 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004477/0.2776, allocations: 450 kB / 432.2 MB, free: 5.504 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001238/0.2789, allocations: 1.223 MB / 433.5 MB, free: 4.281 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2789, allocations: 4 kB / 433.5 MB, free: 4.277 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.443e-06/0.2789, allocations: 0 / 433.5 MB, free: 4.277 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.761e-05/0.2789, allocations: 0 / 433.5 MB, free: 4.277 MB / 334.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.003221/0.2821, allocations: 1.21 MB / 434.7 MB, free: 3.016 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.2821, allocations: 12.03 kB / 434.7 MB, free: 3.004 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.2823, allocations: 84.42 kB / 434.8 MB, free: 2.922 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008552/0.2832, allocations: 428 kB / 435.2 MB, free: 2.477 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.2832, allocations: 45.69 kB / 435.2 MB, free: 2.434 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.2834, allocations: 56.38 kB / 435.3 MB, free: 2.379 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.2859, allocations: 0.9723 MB / 436.3 MB, free: 1.348 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.2859, allocations: 0 / 436.3 MB, free: 1.348 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.289e-05/0.286, allocations: 28 kB / 436.3 MB, free: 1.32 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.286, allocations: 16 kB / 436.3 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003405/0.2894, allocations: 1.003 MB / 437.3 MB, free: 304 kB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005926/0.2953, allocations: 3.141 MB / 440.4 MB, free: 13.03 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.298, allocations: 0.7373 MB / 441.2 MB, free: 12.29 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.2994, allocations: 421.8 kB / 441.6 MB, free: 11.87 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.247e-05/0.2995, allocations: 16.48 kB / 441.6 MB, free: 11.86 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.3009, allocations: 465 kB / 442.1 MB, free: 11.39 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=50): time 2.785e-06/0.3009, allocations: 0 / 442.1 MB, free: 11.39 MB / 350.1 MB
Notification: Performance of matching and sorting (n=50): time 0.003698/0.3046, allocations: 1.104 MB / 443.2 MB, free: 10.28 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002638/0.3048, allocations: 372.3 kB / 443.5 MB, free: 9.828 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.3061, allocations: 0.5732 MB / 444.1 MB, free: 9.242 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.687e-05/0.3062, allocations: 37.7 kB / 444.1 MB, free: 9.199 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.3065, allocations: 376.5 kB / 444.5 MB, free: 8.828 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.3067, allocations: 182.5 kB / 444.7 MB, free: 8.648 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002812/0.307, allocations: 142.6 kB / 444.8 MB, free: 8.504 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.000298/0.3073, allocations: 374.8 kB / 445.2 MB, free: 8.129 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.3088, allocations: 401.7 kB / 445.6 MB, free: 7.734 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.3104, allocations: 0.6733 MB / 446.3 MB, free: 6.934 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/0.3131, allocations: 0.9713 MB / 447.2 MB, free: 5.875 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.3131, allocations: 7.938 kB / 447.2 MB, free: 5.867 MB / 350.1 MB
Notification: Performance of matching and sorting (n=91) (initialization): time 0.003554/0.3167, allocations: 1.147 MB / 448.4 MB, free: 4.699 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.992e-05/0.3168, allocations: 67.39 kB / 448.5 MB, free: 4.621 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.3168, allocations: 8 kB / 448.5 MB, free: 4.613 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.742e-05/0.3168, allocations: 8 kB / 448.5 MB, free: 4.605 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.3181, allocations: 223.9 kB / 448.7 MB, free: 4.387 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/0.3181, allocations: 11.98 kB / 448.7 MB, free: 4.375 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.3192, allocations: 183.2 kB / 448.9 MB, free: 4.195 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.49e-05/0.3193, allocations: 31.98 kB / 448.9 MB, free: 4.164 MB / 350.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.0004718/0.3198, allocations: 225.5 kB / 449.1 MB, free: 3.934 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.3199, allocations: 67.58 kB / 449.2 MB, free: 3.867 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.3201, allocations: 78.41 kB / 449.3 MB, free: 3.789 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3201, allocations: 4 kB / 449.3 MB, free: 3.785 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.3201, allocations: 0 / 449.3 MB, free: 3.785 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3201, allocations: 3.984 kB / 449.3 MB, free: 3.781 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.3241, allocations: 1.645 MB / 450.9 MB, free: 2.086 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3241, allocations: 0 / 450.9 MB, free: 2.086 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008541/0.3249, allocations: 151.8 kB / 451.1 MB, free: 1.938 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.3249, allocations: 7.984 kB / 451.1 MB, free: 1.93 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/0.325, allocations: 15.94 kB / 451.1 MB, free: 1.914 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.325, allocations: 0 / 451.1 MB, free: 1.914 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.325, allocations: 0 / 451.1 MB, free: 1.914 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/0.3289, allocations: 1.307 MB / 452.4 MB, free: 0.5859 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.3291, allocations: 83.41 kB / 452.5 MB, free: 0.5039 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.3292, allocations: 15.98 kB / 452.5 MB, free: 500 kB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008528/0.33, allocations: 103.9 kB / 452.6 MB, free: 396 kB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.3302, allocations: 56.3 kB / 452.7 MB, free: 340 kB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.655e-05/0.3302, allocations: 15.98 kB / 452.7 MB, free: 324 kB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.000709/0.331, allocations: 406.8 kB / 453.1 MB, free: 15.92 MB / 366.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.331, allocations: 0 / 453.1 MB, free: 15.92 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0007449/0.3317, allocations: 179.8 kB / 453.2 MB, free: 15.75 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.0001973/0.3319, allocations: 111.2 kB / 453.4 MB, free: 15.62 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.002917/0.3348, allocations: 0.9657 MB / 454.3 MB, free: 14.64 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3348, allocations: 4.375 kB / 454.3 MB, free: 14.63 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001201/0.336, allocations: 386.2 kB / 454.7 MB, free: 14.25 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000658/0.3367, allocations: 114.2 kB / 454.8 MB, free: 14.14 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.3393, allocations: 1.258 MB / 456.1 MB, free: 12.86 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.3399, allocations: 0.8824 MB / 457 MB, free: 11.95 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.000403/0.3403, allocations: 88.8 kB / 457 MB, free: 11.86 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/0.3405, allocations: 55.42 kB / 457.1 MB, free: 11.8 MB / 366.1 MB
Notification: Performance of SimCode: time 6.31e-07/0.3405, allocations: 0 / 457.1 MB, free: 11.8 MB / 366.1 MB
Notification: Performance of Templates: time 0.01765/0.3581, allocations: 9.243 MB / 466.3 MB, free: 2.625 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.999943604692817]