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.001442/0.001442, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002882, allocations: 4 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1253, allocations: 51.5 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003824/0.1292, allocations: 3.438 MB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1313, allocations: 1.204 MB / 362.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003083/0.1316, allocations: 15.94 kB / 362.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.1317, allocations: 71.39 kB / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003832/0.1321, allocations: 195.4 kB / 363 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005431/0.1327, allocations: 195.7 kB / 363.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006658/0.1334, allocations: 0.6149 MB / 363.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003417/0.1337, allocations: 219.9 kB / 364 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.134, allocations: 322.9 kB / 364.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003988/0.1344, allocations: 386.5 kB / 364.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.559e-05/0.1345, allocations: 52 kB / 364.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.642e-05/0.1346, allocations: 48 kB / 364.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.1348, allocations: 147.5 kB / 364.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.1349, allocations: 161.3 kB / 365.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007065/0.1356, allocations: 0.9234 MB / 366 MB, free: 5.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1357, allocations: 0 / 366 MB, free: 5.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1357, allocations: 0 / 366 MB, free: 5.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.91e-05/0.1357, allocations: 0 / 366 MB, free: 5.93 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.002731/0.1384, allocations: 1.228 MB / 367.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1385, allocations: 8.031 kB / 367.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.1387, allocations: 83.06 kB / 367.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.1392, allocations: 456.6 kB / 367.8 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.1393, allocations: 41.31 kB / 367.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.1394, allocations: 56 kB / 367.9 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.1417, allocations: 1.042 MB / 368.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1418, allocations: 0 / 368.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.53e-05/0.1418, allocations: 28 kB / 368.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1419, allocations: 16 kB / 369 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003073/0.1449, allocations: 1.159 MB / 370.1 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2262/0.3712, allocations: 3.27 MB / 373.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.374, allocations: 1.027 MB / 374.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.081e-05/0.3741, allocations: 22.38 kB / 374.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001498/0.3756, allocations: 0.5119 MB / 375 MB, free: 17.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.158e-06/0.3756, allocations: 4 kB / 375 MB, free: 17.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003747/0.3794, allocations: 1.272 MB / 376.2 MB, free: 17.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.3795, allocations: 378.3 kB / 376.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009106/0.3804, allocations: 0.5637 MB / 377.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.677e-05/0.3805, allocations: 38.58 kB / 377.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.3808, allocations: 370.2 kB / 377.6 MB, free: 16.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.3809, allocations: 169.7 kB / 377.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.381, allocations: 16.09 kB / 377.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3811, allocations: 374.2 kB / 378.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.3823, allocations: 463.4 kB / 378.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.3837, allocations: 0.7376 MB / 379.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.385, allocations: 0.5283 MB / 379.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/0.385, allocations: 1.844 kB / 379.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003211/0.3882, allocations: 1.251 MB / 381.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.3883, allocations: 66.5 kB / 381.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.3883, allocations: 6.438 kB / 381.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.325e-05/0.3884, allocations: 12.12 kB / 381.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.3895, allocations: 256.3 kB / 381.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.275e-05/0.3896, allocations: 15.56 kB / 381.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.3908, allocations: 227.5 kB / 381.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.926e-05/0.3909, allocations: 31.17 kB / 381.7 MB, free: 14.33 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004129/0.3913, allocations: 225.5 kB / 381.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.3915, allocations: 65.91 kB / 382 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.3916, allocations: 75.34 kB / 382 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.3917, allocations: 5.656 kB / 382 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/0.3917, allocations: 0 / 382 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3917, allocations: 2.953 kB / 382 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004089/0.3958, allocations: 1.785 MB / 383.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3958, allocations: 1.125 kB / 383.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009276/0.3968, allocations: 181 kB / 384 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.256e-05/0.3968, allocations: 2.156 kB / 384 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.902e-05/0.3968, allocations: 14.5 kB / 384 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.3969, allocations: 1.156 kB / 384 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.3969, allocations: 7.953 kB / 384 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003908/0.4008, allocations: 1.473 MB / 385.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.401, allocations: 141.7 kB / 385.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.4011, allocations: 13.23 kB / 385.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008658/0.402, allocations: 146.5 kB / 385.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.4022, allocations: 50.61 kB / 385.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.363e-05/0.4022, allocations: 24.56 kB / 385.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007161/0.403, allocations: 397.4 kB / 386.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.403, allocations: 0 / 386.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009082/0.4039, allocations: 176.8 kB / 386.4 MB, free: 12.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002083/0.4041, allocations: 129.2 kB / 386.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.407, allocations: 1.112 MB / 387.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4071, allocations: 1.281 kB / 387.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.4083, allocations: 472.1 kB / 388.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.4088, allocations: 89.84 kB / 388.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/0.4118, allocations: 1.512 MB / 389.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004702/0.4123, allocations: 0.9 MB / 390.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004819/0.4128, allocations: 88.81 kB / 390.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.413, allocations: 52.08 kB / 390.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.413, allocations: 0 / 390.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of Templates: time 0.01343/0.4264, allocations: 7.527 MB / 398.3 MB, free: 5.59 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches