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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.3 MB / 241.4 MB, free: 9.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009438/0.0009438, allocations: 91.19 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004408, allocations: 11.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3059, allocations: 50.41 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.4111, allocations: 82.58 MB / 485.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003589/0.4116, allocations: 79.95 kB / 485.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03164/0.4432, allocations: 11.42 MB / 496.8 MB, free: 2.188 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4433, allocations: 0 / 496.8 MB, free: 2.188 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.923e-05/0.4434, allocations: 12 kB / 496.8 MB, free: 2.176 MB / 362.7 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.003194/0.4466, allocations: 1.179 MB / 498 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.4466, allocations: 16.02 kB / 498 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003322/0.447, allocations: 80 kB / 498.1 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008929/0.4479, allocations: 0.4987 MB / 498.6 MB, free: 300 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.797e-05/0.4479, allocations: 49.69 kB / 498.7 MB, free: 252 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.4481, allocations: 56.38 kB / 498.7 MB, free: 196 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002268/0.4504, allocations: 1.051 MB / 499.8 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.4504, allocations: 192 / 499.8 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-05/0.4505, allocations: 27.94 kB / 499.8 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.4506, allocations: 16 kB / 499.8 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002876/0.4534, allocations: 1.159 MB / 0.4892 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005582/0.459, allocations: 3.293 MB / 0.4924 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002371/0.4615, allocations: 1.029 MB / 0.4934 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.4626, allocations: 497.9 kB / 0.4939 GB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-05/0.4627, allocations: 24.48 kB / 0.4939 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.464, allocations: 0.5176 MB / 0.4944 GB, free: 8.336 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 5.43e-06/0.464, allocations: 0 / 0.4944 GB, free: 8.336 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.003274/0.4673, allocations: 1.267 MB / 0.4957 GB, free: 7.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001978/0.4675, allocations: 376.3 kB / 0.496 GB, free: 6.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.4685, allocations: 0.5654 MB / 0.4966 GB, free: 6.039 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.093e-05/0.4686, allocations: 41.7 kB / 0.4966 GB, free: 5.992 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003642/0.469, allocations: 371.6 kB / 0.497 GB, free: 5.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.4692, allocations: 165.6 kB / 0.4971 GB, free: 5.457 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.653e-05/0.4693, allocations: 19.94 kB / 0.4972 GB, free: 5.438 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.4695, allocations: 374.8 kB / 0.4975 GB, free: 5.062 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.4708, allocations: 457.7 kB / 0.498 GB, free: 4.617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.4724, allocations: 0.7397 MB / 0.4987 GB, free: 3.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002469/0.4749, allocations: 1.076 MB / 0.4997 GB, free: 2.582 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.4749, allocations: 4 kB / 0.4997 GB, free: 2.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003275/0.4782, allocations: 1.251 MB / 0.501 GB, free: 1.305 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.4783, allocations: 67.44 kB / 0.501 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.4783, allocations: 12 kB / 0.501 GB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/0.4784, allocations: 8 kB / 0.501 GB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.4794, allocations: 247.6 kB / 0.5013 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/0.4794, allocations: 15.94 kB / 0.5013 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.4806, allocations: 227 kB / 0.5015 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-05/0.4807, allocations: 36 kB / 0.5015 GB, free: 0.6914 MB / 378.7 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00044/0.4811, allocations: 221.6 kB / 0.5018 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.4813, allocations: 71.19 kB / 0.5018 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.4815, allocations: 70.41 kB / 0.5019 GB, free: 328 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4815, allocations: 7.938 kB / 0.5019 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4816, allocations: 0 / 0.5019 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.4816, allocations: 7.984 kB / 0.5019 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2188/0.7003, allocations: 1.778 MB / 0.5036 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.7004, allocations: 0 / 0.5036 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008195/0.7012, allocations: 176.7 kB / 0.5038 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.7012, allocations: 3.594 kB / 0.5038 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.7013, allocations: 11.91 kB / 0.5038 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.7013, allocations: 6.625 kB / 0.5038 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.7013, allocations: 2.156 kB / 0.5038 GB, free: 97.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003463/0.7048, allocations: 1.468 MB / 0.5053 GB, free: 97.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/0.705, allocations: 148.5 kB / 0.5054 GB, free: 97.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.7051, allocations: 15.61 kB / 0.5054 GB, free: 97.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007486/0.7058, allocations: 144.8 kB / 0.5056 GB, free: 97.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.706, allocations: 54.09 kB / 0.5056 GB, free: 97.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.7061, allocations: 21.52 kB / 0.5056 GB, free: 97.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000685/0.7068, allocations: 394.7 kB / 0.506 GB, free: 97.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7068, allocations: 0 / 0.506 GB, free: 97.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006825/0.7075, allocations: 181.7 kB / 0.5062 GB, free: 97.57 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001751/0.7076, allocations: 128.7 kB / 0.5063 GB, free: 97.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.7099, allocations: 1.117 MB / 0.5074 GB, free: 97.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.7099, allocations: 3.25 kB / 0.5074 GB, free: 97.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009153/0.7108, allocations: 461.8 kB / 0.5078 GB, free: 97.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.7114, allocations: 97.47 kB / 0.5079 GB, free: 97.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.7136, allocations: 1.507 MB / 0.5094 GB, free: 96.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.7139, allocations: 0.8916 MB / 0.5103 GB, free: 95.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004486/0.7143, allocations: 76.52 kB / 0.5104 GB, free: 95.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.7145, allocations: 61.47 kB / 0.5104 GB, free: 95.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.7145, allocations: 0 / 0.5104 GB, free: 95.93 MB / 378.7 MB Notification: Performance of Templates: time 0.01228/0.7268, allocations: 7.792 MB / 0.518 GB, free: 94.2 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches