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.001325/0.001325, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001648/0.001648, allocations: 191 kB / 17.99 MB, free: 5.109 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.489/1.489, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 43.94 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3467, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006336/0.3531, allocations: 4.23 MB / 405 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.3557, allocations: 1.187 MB / 406.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000771/0.3565, allocations: 11.94 kB / 406.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004391/0.357, allocations: 102.9 kB / 406.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008671/0.3579, allocations: 190.3 kB / 406.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.359, allocations: 327.5 kB / 406.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.3601, allocations: 1.105 MB / 407.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004398/0.3606, allocations: 274.6 kB / 408.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003791/0.361, allocations: 410.8 kB / 408.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004633/0.3614, allocations: 466.2 kB / 409 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.3616, allocations: 116 kB / 409.1 MB, free: 448 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.3617, allocations: 120 kB / 409.2 MB, free: 328 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.3619, allocations: 219.4 kB / 409.4 MB, free: 108 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004028/0.3623, allocations: 454.1 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.3634, allocations: 1.212 MB / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3634, allocations: 0 / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.3635, allocations: 0 / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.3635, allocations: 3.938 kB / 411.1 MB, free: 14.45 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.00288/0.3664, allocations: 1.263 MB / 412.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.397e-05/0.3664, allocations: 8.031 kB / 412.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3666, allocations: 84 kB / 412.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006232/0.3672, allocations: 477.5 kB / 412.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.3673, allocations: 53.69 kB / 413 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3674, allocations: 52.38 kB / 413 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001902/0.3693, allocations: 0.9684 MB / 414 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.3693, allocations: 7.984 kB / 414 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/0.3694, allocations: 24 kB / 414 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.3694, allocations: 16 kB / 414 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/0.372, allocations: 0.9991 MB / 415 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004432/0.3765, allocations: 3.196 MB / 418.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002073/0.3785, allocations: 0.9052 MB / 419.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.3796, allocations: 447.1 kB / 419.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-05/0.3796, allocations: 16.42 kB / 419.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.3807, allocations: 465.1 kB / 420 MB, free: 5.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.334e-06/0.3807, allocations: 0 / 420 MB, free: 5.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.002829/0.3835, allocations: 1.095 MB / 421.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002483/0.3838, allocations: 380.3 kB / 421.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008154/0.3846, allocations: 0.577 MB / 422.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.484e-05/0.3847, allocations: 37.7 kB / 422.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/0.385, allocations: 367.5 kB / 422.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.3852, allocations: 169.6 kB / 422.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002675/0.3855, allocations: 138.6 kB / 422.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.3857, allocations: 374.8 kB / 423.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.3867, allocations: 405.7 kB / 423.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.388, allocations: 0.6733 MB / 424.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.39, allocations: 0.9623 MB / 425.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.39, allocations: 11.88 kB / 425.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00259/0.3926, allocations: 1.146 MB / 426.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.997e-05/0.3927, allocations: 63.39 kB / 426.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.3927, allocations: 8 kB / 426.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.3927, allocations: 8 kB / 426.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009709/0.3937, allocations: 223.7 kB / 426.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3937, allocations: 12 kB / 426.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009112/0.3947, allocations: 191 kB / 426.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.847e-05/0.3947, allocations: 28 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.0002879/0.395, allocations: 230 kB / 427.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-05/0.3951, allocations: 67.23 kB / 427.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.3953, allocations: 78.39 kB / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3953, allocations: 8 kB / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3953, allocations: 0 / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3953, allocations: 0 / 427.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.3983, allocations: 1.684 MB / 428.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3983, allocations: 0 / 428.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00071/0.399, allocations: 143.8 kB / 429.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.399, allocations: 8 kB / 429.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.3991, allocations: 15.98 kB / 429.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3991, allocations: 0 / 429.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3991, allocations: 0 / 429.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/0.402, allocations: 1.299 MB / 430.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.4022, allocations: 140.3 kB / 430.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.064e-05/0.4023, allocations: 16 kB / 430.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006851/0.403, allocations: 103.9 kB / 430.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.4031, allocations: 56.31 kB / 430.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.209e-05/0.4032, allocations: 11.98 kB / 430.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.4037, allocations: 402.8 kB / 431.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4037, allocations: 0 / 431.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005746/0.4043, 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.000169/0.4044, allocations: 119.2 kB / 431.4 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.4067, allocations: 1 MB / 432.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4067, allocations: 0 / 432.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009534/0.4077, allocations: 407.4 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.0006411/0.4083, allocations: 110.2 kB / 432.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.4108, allocations: 1.251 MB / 434.1 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.4112, allocations: 0.8824 MB / 435 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.4116, allocations: 84.86 kB / 435.1 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.4118, allocations: 55.42 kB / 435.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4118, allocations: 0 / 435.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of Templates: time 0.01438/0.4262, allocations: 8.811 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