Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001497, allocations: 110.2 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 43.94 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4343/0.4361, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.007103/0.4432, allocations: 4.233 MB / 405 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.4459, allocations: 1.176 MB / 406.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003643/0.4463, allocations: 11.94 kB / 406.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.4465, allocations: 110.9 kB / 406.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000392/0.447, allocations: 190.3 kB / 406.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007662/0.4478, allocations: 327.5 kB / 406.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.4489, allocations: 1.101 MB / 407.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004185/0.4493, allocations: 278.6 kB / 408.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.4498, allocations: 410.8 kB / 408.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004655/0.4502, allocations: 466.2 kB / 409 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001434/0.4504, allocations: 120 kB / 409.1 MB, free: 444 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.4505, allocations: 116 kB / 409.2 MB, free: 328 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.4507, allocations: 219.4 kB / 409.4 MB, free: 108 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004001/0.4511, allocations: 450.1 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.4522, allocations: 1.216 MB / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.4522, allocations: 4 kB / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.4522, allocations: 4 kB / 411.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.4522, allocations: 0 / 411.1 MB, free: 14.44 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.002905/0.4551, allocations: 1.251 MB / 412.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.4552, allocations: 12.03 kB / 412.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.4554, allocations: 80 kB / 412.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/0.456, allocations: 489.5 kB / 412.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.488e-05/0.4561, allocations: 41.69 kB / 413 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.4562, allocations: 60.38 kB / 413 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/0.4584, allocations: 0.9723 MB / 414 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4584, allocations: 4 kB / 414 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-05/0.4585, allocations: 24 kB / 414 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.4585, allocations: 12 kB / 414 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.4614, allocations: 0.9991 MB / 415 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005206/0.4666, allocations: 3.192 MB / 418.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.4691, allocations: 0.9129 MB / 419.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.4703, allocations: 447.3 kB / 419.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-05/0.4704, allocations: 12.5 kB / 419.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.4716, allocations: 465.1 kB / 420 MB, free: 5.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.527e-06/0.4717, allocations: 0 / 420 MB, free: 5.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003341/0.475, allocations: 1.099 MB / 421.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002289/0.4752, allocations: 372.3 kB / 421.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008343/0.4761, allocations: 0.5809 MB / 422.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/0.4762, allocations: 41.64 kB / 422.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.4765, allocations: 367.6 kB / 422.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.4766, allocations: 173.6 kB / 422.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.4769, allocations: 138.6 kB / 422.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.4771, allocations: 374.8 kB / 423.2 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.4783, allocations: 401.7 kB / 423.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.4797, allocations: 0.6772 MB / 424.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.4821, allocations: 0.9623 MB / 425.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.4821, allocations: 7.938 kB / 425.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002921/0.4851, allocations: 1.146 MB / 426.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/0.4852, allocations: 70.05 kB / 426.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.4852, allocations: 8 kB / 426.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.4852, allocations: 8 kB / 426.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.4863, allocations: 220 kB / 426.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.4863, allocations: 19.92 kB / 426.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.4874, allocations: 183 kB / 426.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/0.4875, allocations: 32 kB / 426.9 MB, free: 13.94 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.0004016/0.4879, allocations: 230 kB / 427.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.4881, allocations: 63.25 kB / 427.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.4883, allocations: 74.41 kB / 427.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.4883, allocations: 7.984 kB / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.4883, allocations: 0 / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4883, allocations: 0 / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.4919, allocations: 1.677 MB / 428.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4919, allocations: 0 / 428.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007893/0.4927, allocations: 151.8 kB / 429.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/0.4928, allocations: 0 / 429.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.97e-05/0.4928, allocations: 15.92 kB / 429.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/0.4928, allocations: 4 kB / 429.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.4928, allocations: 3.984 kB / 429.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003451/0.4963, allocations: 1.303 MB / 430.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/0.4965, allocations: 140.3 kB / 430.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.4967, allocations: 12 kB / 430.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008277/0.4975, allocations: 103.9 kB / 430.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.4977, allocations: 52.31 kB / 430.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.4978, allocations: 19.98 kB / 430.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008114/0.4986, allocations: 402.8 kB / 431.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4986, allocations: 0 / 431.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000799/0.4994, allocations: 183.7 kB / 431.3 MB, free: 9.414 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.0002394/0.4996, allocations: 119.2 kB / 431.4 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002863/0.5025, allocations: 0.9974 MB / 432.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/0.5025, allocations: 4 kB / 432.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.5037, allocations: 406.3 kB / 432.8 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.5046, allocations: 106.3 kB / 432.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.508, allocations: 1.251 MB / 434.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.5086, allocations: 0.8824 MB / 435 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.5091, allocations: 80.86 kB / 435.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.5094, allocations: 59.36 kB / 435.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5094, allocations: 0 / 435.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01607/0.5255, allocations: 8.814 MB / 444 MB, free: 12.68 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches