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.001195/0.001195, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 203.8 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4419/0.4432, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005944/0.4492, allocations: 4.251 MB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00308/0.4523, allocations: 1.215 MB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005576/0.4529, allocations: 8 kB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000388/0.4534, allocations: 110.8 kB / 414.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004728/0.4539, allocations: 170.3 kB / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009267/0.4548, allocations: 335.5 kB / 415.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.4561, allocations: 1.093 MB / 416.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005045/0.4566, allocations: 282.6 kB / 416.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004843/0.4571, allocations: 410.8 kB / 417.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005298/0.4576, allocations: 466.2 kB / 417.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.4578, allocations: 120 kB / 417.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.458, allocations: 116 kB / 417.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.4582, allocations: 223.3 kB / 418 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004015/0.4586, allocations: 446 kB / 418.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.4597, allocations: 1.216 MB / 419.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.4597, allocations: 8 kB / 419.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.008e-06/0.4597, allocations: 0 / 419.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.4597, allocations: 3.938 kB / 419.7 MB, free: 7.133 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.00321/0.463, allocations: 1.263 MB / 420.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.463, allocations: 8.031 kB / 420.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002622/0.4633, allocations: 80 kB / 421 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009088/0.4642, allocations: 485.5 kB / 421.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.4643, allocations: 45.69 kB / 421.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.4644, allocations: 56.38 kB / 421.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.4667, allocations: 0.9722 MB / 422.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.4667, allocations: 7.984 kB / 422.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.482e-05/0.4668, allocations: 28 kB / 422.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.4668, allocations: 16 kB / 422.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00299/0.4698, allocations: 1.003 MB / 423.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005625/0.4755, allocations: 3.188 MB / 426.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/0.4777, allocations: 0.9117 MB / 427.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.4789, allocations: 441.8 kB / 428.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.146e-05/0.479, allocations: 20.48 kB / 428.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.4802, allocations: 465 kB / 428.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.725e-06/0.4803, allocations: 7.938 kB / 428.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003472/0.4837, allocations: 1.088 MB / 429.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003418/0.4841, allocations: 376.3 kB / 430.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009967/0.4851, allocations: 0.577 MB / 430.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.82e-05/0.4852, allocations: 37.7 kB / 430.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003652/0.4856, allocations: 375.5 kB / 431.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.4858, allocations: 169.6 kB / 431.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/0.486, allocations: 138.5 kB / 431.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.4862, allocations: 378.8 kB / 431.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.4874, allocations: 405.6 kB / 432.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.4888, allocations: 0.6811 MB / 432.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002177/0.491, allocations: 0.9662 MB / 433.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/0.491, allocations: 3.938 kB / 433.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003016/0.494, allocations: 1.138 MB / 434.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.486e-05/0.4941, allocations: 62.38 kB / 435 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/0.4942, allocations: 8 kB / 435 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.383e-05/0.4942, allocations: 11.98 kB / 435 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.4953, allocations: 223.8 kB / 435.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.257e-05/0.4953, allocations: 19.92 kB / 435.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.4965, allocations: 187 kB / 435.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/0.4966, allocations: 28 kB / 435.4 MB, free: 6.609 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.000479/0.4971, allocations: 225.6 kB / 435.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.4973, allocations: 63.25 kB / 435.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.4975, allocations: 74.41 kB / 435.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4975, allocations: 4 kB / 435.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.4975, allocations: 7.984 kB / 435.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.4975, allocations: 7.938 kB / 435.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003728/0.5013, allocations: 1.673 MB / 437.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.5013, allocations: 0 / 437.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000774/0.5021, allocations: 147.8 kB / 437.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.315e-06/0.5021, allocations: 7.938 kB / 437.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.094e-05/0.5022, allocations: 15.98 kB / 437.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.5022, allocations: 0 / 437.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.5022, allocations: 4 kB / 437.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003159/0.5053, allocations: 1.295 MB / 439 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.5055, allocations: 152.2 kB / 439.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.647e-05/0.5056, allocations: 12 kB / 439.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007571/0.5064, allocations: 107.9 kB / 439.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.5066, allocations: 48.31 kB / 439.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.5066, allocations: 16 kB / 439.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005969/0.5072, allocations: 398.8 kB / 439.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5072, allocations: 0 / 439.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007028/0.5079, allocations: 187.7 kB / 439.9 MB, free: 2.082 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.0002822/0.5082, allocations: 119.1 kB / 440 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.5109, allocations: 0.9936 MB / 441 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.511, allocations: 0 / 441 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.512, allocations: 414.2 kB / 441.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.5127, allocations: 102.2 kB / 441.5 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.5156, allocations: 1.239 MB / 442.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005544/0.5161, allocations: 0.894 MB / 443.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003824/0.5165, allocations: 80.81 kB / 443.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.5168, allocations: 59.42 kB / 443.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 5.72e-07/0.5168, allocations: 0 / 443.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01967/0.5364, allocations: 8.846 MB / 452.6 MB, free: 5.328 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/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_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches