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.001155/0.001155, allocations: 106.9 kB / 17.74 MB, free: 5.363 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.001158/0.001158, allocations: 180.5 kB / 18.66 MB, free: 4.449 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 47.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.288, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005274/0.2933, allocations: 4.233 MB / 405.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.2956, allocations: 1.184 MB / 406.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003348/0.296, allocations: 12 kB / 406.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002665/0.2963, allocations: 106.9 kB / 406.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003946/0.2967, allocations: 182.3 kB / 407.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006807/0.2974, allocations: 331.5 kB / 407.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.2984, allocations: 1.101 MB / 408.5 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.2989, allocations: 278.6 kB / 408.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004975/0.2994, allocations: 410.8 kB / 409.2 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000471/0.2999, allocations: 462.2 kB / 409.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.3, allocations: 124 kB / 409.8 MB, free: 444 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.3002, allocations: 116 kB / 409.9 MB, free: 328 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001923/0.3004, allocations: 231.3 kB / 410.1 MB, free: 96 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003955/0.3008, allocations: 446.2 kB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.3018, allocations: 1.216 MB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3018, allocations: 0 / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3018, allocations: 0 / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.3019, allocations: 4 kB / 411.8 MB, free: 14.43 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.002972/0.3048, allocations: 1.259 MB / 413 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3049, allocations: 8.031 kB / 413 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.3051, allocations: 84 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006804/0.3057, allocations: 481.5 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.469e-05/0.3058, allocations: 45.69 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.3059, allocations: 60.38 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.3082, allocations: 0.9645 MB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.3082, allocations: 4 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.846e-05/0.3083, allocations: 24 kB / 414.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.3083, allocations: 16 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003041/0.3114, allocations: 1.007 MB / 415.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004953/0.3163, allocations: 3.188 MB / 418.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.3188, allocations: 0.9149 MB / 419.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.32, allocations: 441.8 kB / 420.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.602e-05/0.3201, allocations: 12.44 kB / 420.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.3213, allocations: 475 kB / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.835e-06/0.3213, allocations: 4 kB / 420.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003385/0.3247, allocations: 1.088 MB / 421.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001691/0.3249, allocations: 376.3 kB / 422.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008641/0.3258, allocations: 0.5848 MB / 422.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-05/0.3259, allocations: 37.7 kB / 422.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.3262, allocations: 363.6 kB / 423.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.3263, allocations: 169.6 kB / 423.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.3266, allocations: 134.6 kB / 423.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3267, allocations: 374.8 kB / 423.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.328, allocations: 405.7 kB / 424.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.3294, allocations: 0.6811 MB / 424.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002426/0.3319, allocations: 0.97 MB / 425.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.3319, allocations: 3.938 kB / 425.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003034/0.3349, allocations: 1.134 MB / 427 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.623e-05/0.335, allocations: 63.39 kB / 427.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.335, allocations: 12.27 kB / 427.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.3351, allocations: 12 kB / 427.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.3361, allocations: 223.6 kB / 427.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.3361, allocations: 15.94 kB / 427.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.3373, allocations: 183 kB / 427.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.806e-05/0.3373, allocations: 36 kB / 427.5 MB, free: 13.93 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.000347/0.3377, allocations: 226 kB / 427.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.3378, allocations: 75.23 kB / 427.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00016/0.338, allocations: 66.41 kB / 427.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.338, allocations: 4 kB / 427.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.338, allocations: 0 / 427.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.338, allocations: 0 / 427.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/0.3414, allocations: 1.684 MB / 429.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3415, allocations: 0 / 429.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008048/0.3423, allocations: 151.7 kB / 429.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.3423, allocations: 0 / 429.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/0.3423, allocations: 15.98 kB / 429.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.3423, allocations: 0 / 429.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3424, allocations: 11.94 kB / 429.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003475/0.3458, allocations: 1.291 MB / 431.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.346, allocations: 148.4 kB / 431.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.3462, allocations: 12 kB / 431.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008168/0.347, allocations: 103.9 kB / 431.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3471, allocations: 52.31 kB / 431.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.466e-05/0.3472, allocations: 23.98 kB / 431.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006222/0.3478, allocations: 402.8 kB / 431.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3478, allocations: 0 / 431.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000669/0.3485, allocations: 175.7 kB / 432 MB, free: 9.41 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.0001948/0.3487, allocations: 115.2 kB / 432.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002811/0.3515, allocations: 1.004 MB / 433.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3516, allocations: 0 / 433.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.3527, allocations: 411.3 kB / 433.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006622/0.3534, allocations: 110.2 kB / 433.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.3561, allocations: 1.272 MB / 434.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/0.3566, allocations: 0.8824 MB / 435.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003142/0.3569, allocations: 59.42 kB / 435.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.357, allocations: 4 kB / 435.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of Templates: time 0.01507/0.372, allocations: 9.324 MB / 445.1 MB, free: 12.16 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/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