Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009201/0.0009201, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 227.2 MB / 245 MB, free: 5.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008042/0.0008043, allocations: 103.1 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002/0.0002, allocations: 8 kB / 357.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1836, allocations: 51.49 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08683/0.2705, allocations: 83.31 MB / 492.7 MB, free: 7.266 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.2707, allocations: 72.81 kB / 492.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02926/0.3, allocations: 11.46 MB / 0.4924 GB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3, allocations: 0 / 0.4924 GB, free: 11.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.867e-05/0.3001, allocations: 12 kB / 0.4925 GB, free: 11.69 MB / 378.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.002644/0.3027, allocations: 1.202 MB / 0.4936 GB, free: 10.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3028, allocations: 8.031 kB / 0.4936 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.303, allocations: 83.06 kB / 0.4937 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000702/0.3037, allocations: 485.9 kB / 0.4942 GB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.3037, allocations: 49.25 kB / 0.4942 GB, free: 9.766 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3038, allocations: 63.98 kB / 0.4943 GB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.3059, allocations: 1.041 MB / 0.4953 GB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3059, allocations: 3.938 kB / 0.4953 GB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.208e-05/0.306, allocations: 24 kB / 0.4953 GB, free: 8.574 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.306, allocations: 16 kB / 0.4953 GB, free: 8.559 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002799/0.3088, allocations: 1.163 MB / 0.4965 GB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.3133, allocations: 3.289 MB / 0.4997 GB, free: 3.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002205/0.3156, allocations: 1.049 MB / 0.5007 GB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.3156, allocations: 8.5 kB / 0.5007 GB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.3168, allocations: 0.5166 MB / 0.5012 GB, free: 2.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.803e-06/0.3168, allocations: 0 / 0.5012 GB, free: 2.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.002998/0.3198, allocations: 1.271 MB / 0.5025 GB, free: 1.055 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.3199, allocations: 372.3 kB / 0.5028 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006424/0.3206, allocations: 0.5098 MB / 0.5033 GB, free: 88 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.447e-05/0.3206, allocations: 41.7 kB / 0.5034 GB, free: 40 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.144/0.4646, allocations: 364.7 kB / 0.5037 GB, free: 93.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.4649, allocations: 165.9 kB / 0.5039 GB, free: 93.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.623e-05/0.465, allocations: 14.88 kB / 0.5039 GB, free: 93.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4651, allocations: 373.9 kB / 0.5042 GB, free: 92.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4665, allocations: 462.7 kB / 0.5047 GB, free: 92.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.4679, allocations: 0.7324 MB / 0.5054 GB, free: 92.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.4691, allocations: 0.5309 MB / 0.5059 GB, free: 92.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.4692, allocations: 6.562 kB / 0.5059 GB, free: 92.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002797/0.472, allocations: 1.249 MB / 0.5071 GB, free: 92.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.45e-05/0.472, allocations: 67.3 kB / 0.5072 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.472, allocations: 6.125 kB / 0.5072 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.4721, allocations: 10.5 kB / 0.5072 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.4731, allocations: 249.6 kB / 0.5075 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/0.4732, allocations: 18.31 kB / 0.5075 GB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.4743, allocations: 226.9 kB / 0.5077 GB, free: 92.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.498e-05/0.4743, allocations: 35.14 kB / 0.5077 GB, free: 92.28 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.0003032/0.4746, allocations: 222.1 kB / 0.5079 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.4748, allocations: 69.14 kB / 0.508 GB, free: 92.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.4749, allocations: 73.2 kB / 0.5081 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.4749, allocations: 4.125 kB / 0.5081 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.475, allocations: 2.312 kB / 0.5081 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.475, allocations: 2.109 kB / 0.5081 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.4783, allocations: 1.789 MB / 0.5098 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4783, allocations: 0 / 0.5098 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000754/0.479, allocations: 179.7 kB / 0.51 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.4791, allocations: 3.969 kB / 0.51 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.4791, allocations: 14.98 kB / 0.51 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4791, allocations: 0 / 0.51 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4791, allocations: 3.938 kB / 0.51 GB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.4819, allocations: 1.479 MB / 0.5115 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.482, allocations: 147.1 kB / 0.5116 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.75e-05/0.4822, allocations: 12.81 kB / 0.5116 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007291/0.4829, allocations: 148.4 kB / 0.5118 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.483, allocations: 46.34 kB / 0.5118 GB, free: 91.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.4831, allocations: 18.84 kB / 0.5118 GB, free: 91.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004265/0.4835, allocations: 392.9 kB / 0.5122 GB, free: 91.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4835, allocations: 0 / 0.5122 GB, free: 91.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005256/0.484, allocations: 188.6 kB / 0.5124 GB, free: 91.11 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.0001414/0.4842, allocations: 121.8 kB / 0.5125 GB, free: 91.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.4862, allocations: 1.119 MB / 0.5136 GB, free: 90.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4863, allocations: 0 / 0.5136 GB, free: 90.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009085/0.4872, allocations: 466.7 kB / 0.514 GB, free: 90.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.4876, allocations: 92.61 kB / 0.5141 GB, free: 90.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001956/0.4895, allocations: 1.508 MB / 0.5156 GB, free: 89.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.4898, allocations: 0.8934 MB / 0.5165 GB, free: 88.87 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004235/0.4902, allocations: 83.38 kB / 0.5165 GB, free: 88.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.4904, allocations: 57.25 kB / 0.5166 GB, free: 88.84 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.4904, allocations: 3.938 kB / 0.5166 GB, free: 88.83 MB / 378.7 MB Notification: Performance of Templates: time 0.01064/0.5011, allocations: 7.529 MB / 0.524 GB, free: 85.4 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches