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.0009463/0.0009463, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 201 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.715/1.715, allocations: 227.8 MB / 246.9 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004781, allocations: 8 kB / 307.8 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1673, allocations: 51.53 MB / 359.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005151/0.1725, allocations: 3.86 MB / 363.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.1756, allocations: 1.199 MB / 364.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004448/0.1761, allocations: 12 kB / 364.4 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002744/0.1764, allocations: 79.33 kB / 364.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000471/0.1769, allocations: 146.8 kB / 364.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007585/0.1776, allocations: 291.7 kB / 364.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.1788, allocations: 1.007 MB / 365.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.1792, allocations: 247.4 kB / 366.2 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004714/0.1797, allocations: 326.8 kB / 366.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005396/0.1803, allocations: 394.2 kB / 366.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1804, allocations: 52 kB / 366.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1805, allocations: 48 kB / 367 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.1807, allocations: 155.3 kB / 367.1 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000494/0.1812, allocations: 403.7 kB / 367.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.1826, allocations: 1.125 MB / 368.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1826, allocations: 0 / 368.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.1826, allocations: 0 / 368.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.1826, allocations: 0 / 368.6 MB, free: 3.898 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.003215/0.1858, allocations: 1.208 MB / 369.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.1859, allocations: 8.031 kB / 369.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.1861, allocations: 84 kB / 369.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007234/0.1868, allocations: 473.6 kB / 370.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.954e-05/0.1869, allocations: 49.69 kB / 370.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.1871, allocations: 60.28 kB / 370.5 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002811/0.1899, allocations: 1.05 MB / 371.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.701e-05/0.1899, allocations: 7.938 kB / 371.6 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.675e-05/0.19, allocations: 24 kB / 371.6 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.19, allocations: 16 kB / 371.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2453/0.4353, allocations: 1.149 MB / 372.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005885/0.4412, allocations: 3.281 MB / 376 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.444, allocations: 1.039 MB / 377.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.4453, allocations: 497.5 kB / 377.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.4454, allocations: 15.41 kB / 377.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001423/0.4468, allocations: 0.5162 MB / 378.1 MB, free: 16.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.338e-06/0.4469, allocations: 0 / 378.1 MB, free: 16.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.003733/0.4506, allocations: 1.272 MB / 379.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.4507, allocations: 371 kB / 379.7 MB, free: 16.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009594/0.4517, allocations: 0.5771 MB / 380.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.212e-05/0.4518, allocations: 39.48 kB / 380.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.4521, allocations: 367.3 kB / 380.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.4522, allocations: 168 kB / 380.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.4523, allocations: 63.94 kB / 380.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4525, allocations: 374 kB / 381.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.4538, allocations: 463.1 kB / 381.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.4553, allocations: 0.7365 MB / 382.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002717/0.458, allocations: 1.084 MB / 383.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.4581, allocations: 6.719 kB / 383.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003767/0.4619, allocations: 1.26 MB / 384.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.306e-05/0.4619, allocations: 63.09 kB / 384.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.462, allocations: 5.812 kB / 384.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.099e-05/0.462, allocations: 18.33 kB / 384.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.4632, allocations: 249.4 kB / 385.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-05/0.4633, allocations: 15.17 kB / 385.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.4645, allocations: 222.2 kB / 385.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.009e-05/0.4646, allocations: 35.09 kB / 385.4 MB, free: 13.16 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.0003627/0.465, allocations: 222.3 kB / 385.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.4651, allocations: 76.66 kB / 385.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001953/0.4653, allocations: 75.45 kB / 385.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.4653, allocations: 5.281 kB / 385.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/0.4654, allocations: 0 / 385.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.4654, allocations: 2.484 kB / 385.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003958/0.4693, allocations: 1.789 MB / 387.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4694, allocations: 3.938 kB / 387.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008494/0.4702, allocations: 182.2 kB / 387.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.4703, allocations: 2 kB / 387.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.4703, allocations: 19.62 kB / 387.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.4703, allocations: 2.094 kB / 387.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4703, allocations: 0.9375 kB / 387.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003754/0.4741, allocations: 1.481 MB / 389.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.4743, allocations: 145.6 kB / 389.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.4744, allocations: 13 kB / 389.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008444/0.4753, allocations: 148.3 kB / 389.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.4754, allocations: 43.78 kB / 389.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.685e-05/0.4755, allocations: 14.25 kB / 389.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006672/0.4762, allocations: 406.5 kB / 390 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4762, allocations: 0 / 390 MB, free: 11.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008342/0.477, allocations: 181.2 kB / 390.2 MB, free: 10.98 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.000195/0.4772, allocations: 119.7 kB / 390.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002985/0.4802, allocations: 1.115 MB / 391.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.4802, allocations: 1.219 kB / 391.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.4816, allocations: 467.2 kB / 391.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007593/0.4823, allocations: 97.39 kB / 392 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002738/0.4851, allocations: 1.582 MB / 393.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.4855, allocations: 0.8803 MB / 394.4 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004929/0.486, allocations: 87.33 kB / 394.5 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.4862, allocations: 52.17 kB / 394.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of SimCode: time 1.973e-06/0.4862, allocations: 0 / 394.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of Templates: time 0.01549/0.5017, allocations: 7.946 MB / 402.5 MB, free: 1.461 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.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches