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.001211/0.001211, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 67.59 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1085, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006797/0.1154, allocations: 4.242 MB / 363.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1181, allocations: 1.211 MB / 364.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005792/0.1187, allocations: 11.94 kB / 364.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003817/0.1191, allocations: 106.9 kB / 364.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005356/0.1197, allocations: 178.3 kB / 364.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008371/0.1205, allocations: 335.5 kB / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001228/0.1218, allocations: 1.093 MB / 366.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004431/0.1222, allocations: 282.6 kB / 366.3 MB, free: 5.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006421/0.1229, allocations: 406.8 kB / 366.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00077/0.1237, allocations: 462.3 kB / 367.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002129/0.1239, allocations: 123.9 kB / 367.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.1241, allocations: 116 kB / 367.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.1243, allocations: 227.3 kB / 367.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004978/0.1248, allocations: 457.9 kB / 368.1 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.126, allocations: 1.215 MB / 369.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.126, allocations: 0 / 369.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.126, allocations: 3.938 kB / 369.3 MB, free: 2.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.365e-05/0.1261, allocations: 0 / 369.3 MB, free: 2.875 MB / 302.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.003323/0.1294, allocations: 1.263 MB / 370.6 MB, free: 1.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.1294, allocations: 12.03 kB / 370.6 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.1296, allocations: 80 kB / 370.7 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008003/0.1304, allocations: 477.5 kB / 371.1 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.612e-05/0.1305, allocations: 53.67 kB / 371.2 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.1307, allocations: 60.38 kB / 371.2 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1863/0.317, allocations: 0.9613 MB / 372.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.317, allocations: 0.75 kB / 372.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-05/0.3171, allocations: 29.34 kB / 372.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.3172, allocations: 14.25 kB / 372.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003058/0.3202, allocations: 1.001 MB / 373.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.325, allocations: 3.199 MB / 376.4 MB, free: 17.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00221/0.3272, allocations: 0.9133 MB / 377.4 MB, free: 17.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.3284, allocations: 440.9 kB / 377.8 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.066e-05/0.3284, allocations: 14.55 kB / 377.8 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.3296, allocations: 465.1 kB / 378.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.3296, allocations: 1 kB / 378.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003138/0.3328, allocations: 1.092 MB / 379.3 MB, free: 16.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.742e-05/0.3329, allocations: 374.2 kB / 379.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007923/0.3337, allocations: 0.5802 MB / 380.3 MB, free: 16.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.772e-05/0.3338, allocations: 38.52 kB / 380.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/0.334, allocations: 370.6 kB / 380.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.3342, allocations: 170.2 kB / 380.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.3344, allocations: 137.8 kB / 381 MB, free: 15.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3346, allocations: 377.9 kB / 381.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.3357, allocations: 407.2 kB / 381.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.337, allocations: 0.679 MB / 382.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002117/0.3391, allocations: 0.9698 MB / 383.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3391, allocations: 2.25 kB / 383.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002778/0.3419, allocations: 1.135 MB / 384.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/0.342, allocations: 68.61 kB / 384.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.342, allocations: 10.31 kB / 384.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.342, allocations: 11.84 kB / 384.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.3431, allocations: 220.1 kB / 384.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.564e-05/0.3431, allocations: 17.08 kB / 384.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.3441, allocations: 189.9 kB / 385.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/0.3442, allocations: 31.56 kB / 385.1 MB, free: 13.39 MB / 302.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.0002691/0.3445, allocations: 227 kB / 385.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.3446, allocations: 68.45 kB / 385.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.3448, allocations: 72.31 kB / 385.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3448, allocations: 5.047 kB / 385.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.3448, allocations: 5.719 kB / 385.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.3448, allocations: 2.062 kB / 385.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.348, allocations: 1.667 MB / 387.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.348, allocations: 3.938 kB / 387.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007658/0.3487, allocations: 152.9 kB / 387.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.3488, allocations: 2.844 kB / 387.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.3488, allocations: 20.2 kB / 387.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.3488, allocations: 7.203 kB / 387.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3488, allocations: 0 / 387.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/0.3518, allocations: 1.294 MB / 388.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.3519, allocations: 148.9 kB / 388.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.352, allocations: 13.47 kB / 388.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000732/0.3528, allocations: 108.9 kB / 388.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3529, allocations: 48.22 kB / 388.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.547e-05/0.353, allocations: 17.89 kB / 388.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005382/0.3535, allocations: 403 kB / 389.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3535, allocations: 0 / 389.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006546/0.3542, allocations: 176.2 kB / 389.5 MB, free: 11.08 MB / 302.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.0001878/0.3544, allocations: 121.1 kB / 389.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002492/0.3569, allocations: 0.9904 MB / 390.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3569, allocations: 1.094 kB / 390.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.358, allocations: 414.8 kB / 391 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.3586, allocations: 101.8 kB / 391.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.3611, allocations: 1.242 MB / 392.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3614, allocations: 0.8884 MB / 393.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004178/0.3619, allocations: 81.41 kB / 393.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.3621, allocations: 59.3 kB / 393.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3621, allocations: 0 / 393.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of Templates: time 0.01375/0.3759, allocations: 8.737 MB / 402.1 MB, free: 2.199 MB / 302.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 -s gbode -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