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.00161/0.00161, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.89 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3943, allocations: 50.54 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006095/0.4004, allocations: 4.256 MB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.4032, allocations: 1.207 MB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000376/0.4036, allocations: 12 kB / 414.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.404, allocations: 110.8 kB / 414.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004599/0.4045, allocations: 186.3 kB / 415 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.4055, allocations: 327.6 kB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.4069, allocations: 1.093 MB / 416.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005144/0.4074, allocations: 286.6 kB / 416.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005539/0.4079, allocations: 410.8 kB / 417.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005466/0.4085, allocations: 458.3 kB / 417.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001434/0.4087, allocations: 120 kB / 417.7 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.4088, allocations: 116 kB / 417.8 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.409, allocations: 227.3 kB / 418 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000412/0.4094, allocations: 454 kB / 418.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.4106, allocations: 1.216 MB / 419.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.4106, allocations: 4 kB / 419.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4106, allocations: 0 / 419.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.4106, allocations: 0 / 419.7 MB, free: 7.109 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.002982/0.4136, allocations: 1.263 MB / 420.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.4137, allocations: 8.031 kB / 420.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.4138, allocations: 84 kB / 421 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006953/0.4145, allocations: 477.5 kB / 421.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.4146, allocations: 53.56 kB / 421.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.4147, allocations: 60.38 kB / 421.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00209/0.4168, allocations: 0.9684 MB / 422.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.4168, allocations: 7.922 kB / 422.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.335e-05/0.4169, allocations: 28 kB / 422.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.417, allocations: 16 kB / 422.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002645/0.4196, allocations: 0.9991 MB / 423.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004751/0.4244, allocations: 3.196 MB / 426.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00221/0.4266, allocations: 0.9081 MB / 427.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.4277, allocations: 445.7 kB / 428.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-05/0.4278, allocations: 16.33 kB / 428.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.4289, allocations: 465.1 kB / 428.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.937e-06/0.429, allocations: 4 kB / 428.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003004/0.432, allocations: 1.095 MB / 429.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001849/0.4322, allocations: 372.3 kB / 430.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000778/0.4329, allocations: 0.5848 MB / 430.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.433, allocations: 37.7 kB / 430.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.4333, allocations: 367.6 kB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.4335, allocations: 173.6 kB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.4337, allocations: 138.5 kB / 431.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4339, allocations: 374.8 kB / 431.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.435, allocations: 401.7 kB / 432.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.4363, allocations: 0.6811 MB / 432.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00215/0.4385, allocations: 0.9701 MB / 433.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.4385, allocations: 3.938 kB / 433.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002678/0.4412, allocations: 1.134 MB / 434.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.535e-05/0.4412, allocations: 59.41 kB / 435 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.4413, allocations: 8 kB / 435 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.4413, allocations: 12.27 kB / 435 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.4423, allocations: 223.6 kB / 435.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.4423, allocations: 19.92 kB / 435.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009438/0.4433, allocations: 187 kB / 435.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.4434, allocations: 32 kB / 435.5 MB, free: 6.582 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.0003085/0.4437, allocations: 233.5 kB / 435.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.4438, allocations: 63.25 kB / 435.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.444, allocations: 70.41 kB / 435.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.444, allocations: 4 kB / 435.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.444, allocations: 3.984 kB / 435.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.444, allocations: 4 kB / 435.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.4471, allocations: 1.677 MB / 437.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.4472, allocations: 7.938 kB / 437.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007424/0.4479, allocations: 147.8 kB / 437.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.4479, allocations: 0 / 437.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.448, allocations: 15.98 kB / 437.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.448, allocations: 0 / 437.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.448, allocations: 4 kB / 437.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003012/0.451, allocations: 1.295 MB / 439 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.4512, allocations: 148.2 kB / 439.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.31e-05/0.4513, allocations: 20.05 kB / 439.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006935/0.452, allocations: 99.86 kB / 439.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.4521, allocations: 56.25 kB / 439.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/0.4522, allocations: 20 kB / 439.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005411/0.4527, allocations: 398.8 kB / 439.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4527, allocations: 4 kB / 439.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005897/0.4533, allocations: 171.8 kB / 439.9 MB, free: 2.062 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.000175/0.4535, allocations: 119.2 kB / 440 MB, free: 1.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.4559, allocations: 0.9965 MB / 441 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4559, allocations: 3.938 kB / 441 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009882/0.4569, allocations: 411.3 kB / 441.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005894/0.4575, allocations: 101.2 kB / 441.5 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.4598, allocations: 1.239 MB / 442.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.4602, allocations: 0.8863 MB / 443.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.4606, allocations: 84.8 kB / 443.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.4608, allocations: 59.42 kB / 443.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4608, allocations: 0 / 443.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01468/0.4755, allocations: 8.855 MB / 452.6 MB, free: 5.301 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