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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001617/0.001617, allocations: 113 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001973/0.001973, allocations: 202.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2366, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004638/0.2413, allocations: 4.244 MB / 414.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.2432, allocations: 1.211 MB / 415.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.2434, allocations: 11.94 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002285/0.2437, allocations: 106.9 kB / 415.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002967/0.244, allocations: 178.3 kB / 415.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005523/0.2446, allocations: 335.5 kB / 416 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008678/0.2454, allocations: 1.093 MB / 417.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.2458, allocations: 278.6 kB / 417.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.2462, allocations: 414.8 kB / 417.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004506/0.2467, allocations: 458.2 kB / 418.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.2468, allocations: 124 kB / 418.3 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.247, allocations: 116 kB / 418.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.2471, allocations: 227.4 kB / 418.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003281/0.2475, allocations: 450 kB / 419.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009072/0.2484, allocations: 1.212 MB / 420.3 MB, free: 7.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.926e-06/0.2484, allocations: 8 kB / 420.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2484, allocations: 3.938 kB / 420.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.2484, allocations: 0 / 420.3 MB, free: 7.172 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.002673/0.2511, allocations: 1.263 MB / 421.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2511, allocations: 8.031 kB / 421.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.2513, allocations: 84 kB / 421.7 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005845/0.2519, allocations: 481.5 kB / 422.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.2519, allocations: 49.69 kB / 422.2 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.948e-05/0.252, allocations: 60.31 kB / 422.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.2541, allocations: 0.9722 MB / 423.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2541, allocations: 0 / 423.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.247e-05/0.2542, allocations: 32 kB / 423.3 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.2542, allocations: 16 kB / 423.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.2571, allocations: 0.9952 MB / 424.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004354/0.2614, allocations: 3.196 MB / 427.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.2637, allocations: 0.9115 MB / 428.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.2648, allocations: 445.8 kB / 428.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.357e-05/0.2649, allocations: 12.42 kB / 428.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/0.2661, allocations: 473 kB / 429.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.996e-06/0.2661, allocations: 4 kB / 429.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003126/0.2692, allocations: 1.084 MB / 430.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.2694, allocations: 376.3 kB / 430.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.2701, allocations: 0.5809 MB / 431.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.842e-05/0.2702, allocations: 41.64 kB / 431.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.2704, allocations: 367.6 kB / 431.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.2705, allocations: 169.6 kB / 431.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.2708, allocations: 138.5 kB / 432 MB, free: 10.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2709, allocations: 374.8 kB / 432.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.2721, allocations: 405.7 kB / 432.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.2734, allocations: 0.6811 MB / 433.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.2757, allocations: 0.9662 MB / 434.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.2757, allocations: 3.938 kB / 434.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00281/0.2785, allocations: 1.138 MB / 435.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.811e-05/0.2786, allocations: 63.44 kB / 435.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.2786, allocations: 8 kB / 435.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.2786, allocations: 8 kB / 435.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009975/0.2796, allocations: 223.6 kB / 435.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.2797, allocations: 12 kB / 435.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.2807, allocations: 191 kB / 436.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-05/0.2808, allocations: 35.98 kB / 436.1 MB, free: 6.648 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.0002984/0.2811, allocations: 229.5 kB / 436.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.716e-05/0.2812, allocations: 63.25 kB / 436.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.2813, allocations: 70.41 kB / 436.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2813, allocations: 4 kB / 436.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.2814, allocations: 4 kB / 436.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.2814, allocations: 7.984 kB / 436.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.2845, allocations: 1.681 MB / 438.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2845, allocations: 0 / 438.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000773/0.2853, allocations: 155.7 kB / 438.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2853, allocations: 0 / 438.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/0.2854, allocations: 19.98 kB / 438.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2854, allocations: 0 / 438.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2854, allocations: 4 kB / 438.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.2886, allocations: 1.295 MB / 439.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.2887, allocations: 152.2 kB / 439.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.775e-05/0.2888, allocations: 12 kB / 439.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007686/0.2896, allocations: 107.9 kB / 439.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.2897, allocations: 44.33 kB / 440 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.2898, allocations: 19.98 kB / 440 MB, free: 2.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005265/0.2903, allocations: 398.8 kB / 440.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2903, allocations: 4 kB / 440.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005659/0.2909, allocations: 175.8 kB / 440.5 MB, free: 2.125 MB / 350.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.0001631/0.2911, allocations: 115.2 kB / 440.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.2935, allocations: 1 MB / 441.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2935, allocations: 0 / 441.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.2946, allocations: 403.3 kB / 442 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.2952, allocations: 114.1 kB / 442.2 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.2974, allocations: 1.268 MB / 443.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.2978, allocations: 0.8902 MB / 444.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.2981, allocations: 63.42 kB / 444.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of SimCode: time 1.934e-06/0.2981, allocations: 0 / 444.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of Templates: time 0.01199/0.3101, allocations: 9.321 MB / 453.7 MB, free: 4.898 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches