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.001474/0.001474, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.423/1.423, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.001145/0.001145, allocations: 94.09 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002586, allocations: 11.94 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3015, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.105/0.4065, allocations: 82.53 MB / 484 MB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4068, allocations: 76.55 kB / 484.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03032/0.4371, allocations: 11.42 MB / 495.5 MB, free: 2.434 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4372, allocations: 0 / 495.5 MB, free: 2.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.4372, allocations: 15.98 kB / 495.5 MB, free: 2.418 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.00257/0.4398, allocations: 1.194 MB / 496.7 MB, free: 1.156 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.4399, allocations: 8.031 kB / 496.7 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.44, allocations: 79.06 kB / 496.8 MB, free: 1.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007088/0.4407, allocations: 481.9 kB / 497.3 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.484e-05/0.4408, allocations: 45.31 kB / 497.3 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.284e-05/0.4409, allocations: 56 kB / 497.4 MB, free: 472 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.443, allocations: 1.043 MB / 498.4 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.443, allocations: 11.89 kB / 498.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/0.4431, allocations: 28 kB / 498.5 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.4431, allocations: 12 kB / 498.5 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00282/0.4459, allocations: 1.155 MB / 499.6 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.4506, allocations: 3.305 MB / 0.4911 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.4528, allocations: 1.034 MB / 0.4922 GB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.563e-05/0.4529, allocations: 20.48 kB / 0.4922 GB, free: 9.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.4541, allocations: 0.5127 MB / 0.4927 GB, free: 9.086 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 4.117e-06/0.4541, allocations: 0 / 0.4927 GB, free: 9.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.003266/0.4574, allocations: 1.267 MB / 0.4939 GB, free: 7.812 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002026/0.4576, allocations: 376.2 kB / 0.4943 GB, free: 7.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007702/0.4584, allocations: 0.5137 MB / 0.4948 GB, free: 6.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.977e-05/0.4585, allocations: 37.7 kB / 0.4948 GB, free: 6.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.4588, allocations: 367.5 kB / 0.4952 GB, free: 6.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.4589, allocations: 169.6 kB / 0.4953 GB, free: 6.262 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-05/0.459, allocations: 16 kB / 0.4953 GB, free: 6.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4592, allocations: 374.8 kB / 0.4957 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.4603, allocations: 461.7 kB / 0.4961 GB, free: 5.422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.4618, allocations: 0.728 MB / 0.4968 GB, free: 4.562 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.463, allocations: 0.5351 MB / 0.4974 GB, free: 4.023 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.463, allocations: 4 kB / 0.4974 GB, free: 4.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002761/0.4658, allocations: 1.247 MB / 0.4986 GB, free: 2.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.76e-05/0.4658, allocations: 63.41 kB / 0.4986 GB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.4659, allocations: 4.281 kB / 0.4987 GB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.4659, allocations: 19.95 kB / 0.4987 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.4669, allocations: 251.6 kB / 0.4989 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.467, allocations: 15.94 kB / 0.4989 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.4681, allocations: 219 kB / 0.4991 GB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.4682, allocations: 35.98 kB / 0.4992 GB, free: 2.141 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.0004301/0.4686, allocations: 221.6 kB / 0.4994 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.4688, allocations: 71.16 kB / 0.4994 GB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.4689, allocations: 70.41 kB / 0.4995 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.469, allocations: 11.89 kB / 0.4995 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.469, allocations: 0 / 0.4995 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.469, allocations: 3.984 kB / 0.4995 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1851/0.6541, allocations: 1.779 MB / 0.5013 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.6542, allocations: 2.062 kB / 0.5013 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009402/0.6551, allocations: 174.2 kB / 0.5014 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-06/0.6551, allocations: 3.188 kB / 0.5014 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.587e-05/0.6552, allocations: 12.25 kB / 0.5015 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.6552, allocations: 3.578 kB / 0.5015 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6552, allocations: 1.594 kB / 0.5015 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003387/0.6586, allocations: 1.478 MB / 0.5029 GB, free: 97.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.6588, allocations: 151.6 kB / 0.503 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.553e-05/0.6589, allocations: 11.25 kB / 0.5031 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007753/0.6597, allocations: 144.2 kB / 0.5032 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.6598, allocations: 50.86 kB / 0.5032 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.6598, allocations: 16.2 kB / 0.5033 GB, free: 97.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000568/0.6604, allocations: 401.8 kB / 0.5036 GB, free: 97.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6604, allocations: 0 / 0.5036 GB, free: 97.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006686/0.6611, allocations: 179.2 kB / 0.5038 GB, free: 97.61 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.0001561/0.6613, allocations: 126.9 kB / 0.5039 GB, free: 97.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.6637, allocations: 1.119 MB / 0.505 GB, free: 97.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6637, allocations: 0 / 0.505 GB, free: 97.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008992/0.6646, allocations: 467 kB / 0.5055 GB, free: 97.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.6651, allocations: 103.5 kB / 0.5056 GB, free: 97.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.6671, allocations: 1.499 MB / 0.507 GB, free: 96.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.6673, allocations: 0.892 MB / 0.5079 GB, free: 96.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.6677, allocations: 87.33 kB / 0.508 GB, free: 96.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.6679, allocations: 54.34 kB / 0.508 GB, free: 96 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6679, allocations: 0 / 0.508 GB, free: 96 MB / 378.7 MB Notification: Performance of Templates: time 0.01082/0.6788, allocations: 7.567 MB / 0.5154 GB, free: 95.47 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/jenkins/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