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.001847/0.001847, allocations: 196.6 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.627/1.627, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008242/0.0008243, allocations: 100.9 kB / 297.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002648, allocations: 8 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2962, allocations: 51.31 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.4178, allocations: 83.28 MB / 492.7 MB, free: 8.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.4181, allocations: 83.89 kB / 492.7 MB, free: 8.117 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03264/0.4508, allocations: 11.47 MB / 0.4924 GB, free: 12.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4508, allocations: 0 / 0.4924 GB, free: 12.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.322e-05/0.4509, allocations: 16 kB / 0.4924 GB, free: 12.59 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.003649/0.4545, allocations: 1.191 MB / 0.4936 GB, free: 11.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.11e-05/0.4546, allocations: 8.031 kB / 0.4936 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005053/0.4551, allocations: 88 kB / 0.4937 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.4566, allocations: 0.491 MB / 0.4941 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.908e-05/0.4567, allocations: 49.67 kB / 0.4942 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000231/0.4569, allocations: 60.38 kB / 0.4943 GB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002563/0.4595, allocations: 1.055 MB / 0.4953 GB, free: 9.488 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.4596, allocations: 4.188 kB / 0.4953 GB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.736e-05/0.4597, allocations: 31.94 kB / 0.4953 GB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.4597, allocations: 12 kB / 0.4953 GB, free: 9.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003047/0.4627, allocations: 1.155 MB / 0.4965 GB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00581/0.4686, allocations: 3.293 MB / 0.4997 GB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.471, allocations: 1.04 MB / 0.5007 GB, free: 3.773 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.4722, allocations: 497.9 kB / 0.5012 GB, free: 3.281 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-05/0.4723, allocations: 20.42 kB / 0.5012 GB, free: 3.262 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.4736, allocations: 0.5088 MB / 0.5017 GB, free: 2.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 3.867e-06/0.4736, allocations: 0 / 0.5017 GB, free: 2.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.003353/0.477, allocations: 1.275 MB / 0.5029 GB, free: 1.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002236/0.4772, allocations: 372.3 kB / 0.5033 GB, free: 1.008 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.4784, allocations: 0.5693 MB / 0.5038 GB, free: 440 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.13e-05/0.4785, allocations: 37.7 kB / 0.5039 GB, free: 396 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.4789, allocations: 375.5 kB / 0.5042 GB, free: 12 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2352/0.7141, allocations: 161.4 kB / 0.5044 GB, free: 93.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.7143, allocations: 14.59 kB / 0.5044 GB, free: 93.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002711/0.7146, allocations: 374 kB / 0.5048 GB, free: 93.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00174/0.7164, allocations: 460.2 kB / 0.5052 GB, free: 93.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.7181, allocations: 0.7303 MB / 0.5059 GB, free: 93.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002607/0.7208, allocations: 1.084 MB / 0.507 GB, free: 93.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.7208, allocations: 1.812 kB / 0.507 GB, free: 93.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003294/0.7241, allocations: 1.249 MB / 0.5082 GB, free: 92.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/0.7242, allocations: 67.06 kB / 0.5083 GB, free: 92.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.7242, allocations: 6.156 kB / 0.5083 GB, free: 92.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.605e-05/0.7243, allocations: 10 kB / 0.5083 GB, free: 92.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.7253, allocations: 248.2 kB / 0.5085 GB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.929e-05/0.7254, allocations: 19.17 kB / 0.5085 GB, free: 92.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.7266, allocations: 226.5 kB / 0.5087 GB, free: 92.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.7267, allocations: 34.98 kB / 0.5088 GB, free: 92.82 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.0004056/0.7272, allocations: 219.7 kB / 0.509 GB, free: 92.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.7273, allocations: 72.2 kB / 0.509 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001683/0.7275, allocations: 68.34 kB / 0.5091 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.7275, allocations: 5 kB / 0.5091 GB, free: 92.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.7275, allocations: 4.719 kB / 0.5091 GB, free: 92.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.7275, allocations: 2.297 kB / 0.5091 GB, free: 92.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003136/0.7307, allocations: 1.791 MB / 0.5109 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.7307, allocations: 11.16 kB / 0.5109 GB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006794/0.7314, allocations: 174.2 kB / 0.5111 GB, free: 92.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.7314, allocations: 3.625 kB / 0.5111 GB, free: 92.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.7314, allocations: 12.22 kB / 0.5111 GB, free: 92.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.7314, allocations: 8.5 kB / 0.5111 GB, free: 92.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.7315, allocations: 0 / 0.5111 GB, free: 92.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/0.7342, allocations: 1.463 MB / 0.5125 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.7344, allocations: 151.3 kB / 0.5126 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.833e-05/0.7345, allocations: 15.75 kB / 0.5127 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006763/0.7352, allocations: 148 kB / 0.5128 GB, free: 91.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.7353, allocations: 52.75 kB / 0.5129 GB, free: 91.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.7354, allocations: 15.09 kB / 0.5129 GB, free: 91.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000514/0.7359, allocations: 395.8 kB / 0.5132 GB, free: 91.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7359, allocations: 1.422 kB / 0.5132 GB, free: 91.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000718/0.7366, allocations: 181.6 kB / 0.5134 GB, free: 91.71 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.0002177/0.7368, allocations: 125.2 kB / 0.5135 GB, free: 91.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.7392, allocations: 1.111 MB / 0.5146 GB, free: 91.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.7393, allocations: 4.062 kB / 0.5146 GB, free: 91.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009963/0.7403, allocations: 465.8 kB / 0.5151 GB, free: 91.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006305/0.7409, allocations: 112.4 kB / 0.5152 GB, free: 91.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.7433, allocations: 1.508 MB / 0.5167 GB, free: 90.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.7436, allocations: 0.8759 MB / 0.5175 GB, free: 89.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004579/0.7441, allocations: 83 kB / 0.5176 GB, free: 89.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.7442, allocations: 54.11 kB / 0.5176 GB, free: 89.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.492e-06/0.7443, allocations: 0 / 0.5176 GB, free: 89.45 MB / 378.7 MB Notification: Performance of Templates: time 0.01326/0.7575, allocations: 7.801 MB / 0.5253 GB, free: 85.52 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/jenkins1/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