Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000977/0.0009771, allocations: 198.5 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.193/1.193, allocations: 227.2 MB / 245 MB, free: 7.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008706/0.0008705, allocations: 99.62 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001974/0.0001974, allocations: 8 kB / 357.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1796, allocations: 51.48 MB / 409.4 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08951/0.2691, allocations: 83.84 MB / 493.3 MB, free: 6.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.2693, allocations: 71.97 kB / 493.3 MB, free: 6.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03433/0.3037, allocations: 12.79 MB / 0.4942 GB, free: 9.895 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3037, allocations: 3.938 kB / 0.4943 GB, free: 9.891 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.379e-05/0.3038, allocations: 19.98 kB / 0.4943 GB, free: 9.871 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002501/0.3063, allocations: 1.159 MB / 0.4954 GB, free: 8.648 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3063, allocations: 8.031 kB / 0.4954 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.3066, allocations: 94.88 kB / 0.4955 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008937/0.3075, allocations: 0.5075 MB / 0.496 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.3075, allocations: 53.31 kB / 0.496 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.3076, allocations: 63.91 kB / 0.4961 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3089, allocations: 0.674 MB / 0.4968 GB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.309, allocations: 3.938 kB / 0.4968 GB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.433e-05/0.3091, allocations: 24 kB / 0.4968 GB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.3091, allocations: 16 kB / 0.4968 GB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.3108, allocations: 0.7507 MB / 0.4975 GB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/0.3146, allocations: 2.341 MB / 0.4998 GB, free: 3.934 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.3161, allocations: 0.6373 MB / 0.5005 GB, free: 3.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.696e-05/0.3161, allocations: 8.422 kB / 0.5005 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009448/0.3171, allocations: 453.4 kB / 0.5009 GB, free: 2.809 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.595e-06/0.3171, allocations: 0 / 0.5009 GB, free: 2.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.2101/0.5272, allocations: 16.54 MB / 0.517 GB, free: 90.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.5273, allocations: 144.9 kB / 0.5172 GB, free: 90.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004228/0.5277, allocations: 465.5 kB / 0.5176 GB, free: 90.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.581e-05/0.5278, allocations: 44.2 kB / 0.5177 GB, free: 90.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.528, allocations: 387 kB / 0.518 GB, free: 89.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.5282, allocations: 325.6 kB / 0.5183 GB, free: 89.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.831e-05/0.5283, allocations: 17.91 kB / 0.5184 GB, free: 89.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.484e-05/0.5284, allocations: 389.8 kB / 0.5187 GB, free: 89.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.53, allocations: 0.7928 MB / 0.5195 GB, free: 89.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.5318, allocations: 1.021 MB / 0.5205 GB, free: 88.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.5335, allocations: 0.8839 MB / 0.5214 GB, free: 87.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5335, allocations: 4 kB / 0.5214 GB, free: 87.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02088/0.5544, allocations: 5.621 MB / 0.5269 GB, free: 82.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.5544, allocations: 67.39 kB / 0.5269 GB, free: 81.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.5544, allocations: 4 kB / 0.5269 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03203/0.5865, allocations: 7.332 MB / 0.5341 GB, free: 74.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000677/0.5872, allocations: 183.7 kB / 0.5343 GB, free: 74.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004731/0.5919, allocations: 3.072 MB / 0.5373 GB, free: 71.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.5935, allocations: 231.8 kB / 0.5375 GB, free: 71.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.5936, allocations: 51.92 kB / 0.5375 GB, free: 71.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003929/0.594, allocations: 221.9 kB / 0.5377 GB, free: 70.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.5942, allocations: 82.95 kB / 0.5378 GB, free: 70.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02092/0.6151, allocations: 5.478 MB / 0.5432 GB, free: 65.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.6152, allocations: 10.72 kB / 0.5432 GB, free: 65.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.6152, allocations: 0 / 0.5432 GB, free: 65.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.6152, allocations: 3.984 kB / 0.5432 GB, free: 65.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.6164, allocations: 1.114 MB / 0.5443 GB, free: 64.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.6164, allocations: 4.875 kB / 0.5443 GB, free: 64.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004975/0.6169, allocations: 119.9 kB / 0.5444 GB, free: 63.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03229/0.6492, allocations: 7.291 MB / 0.5515 GB, free: 56.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-05/0.6493, allocations: 27.97 kB / 0.5515 GB, free: 56.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/0.6547, allocations: 3.225 MB / 0.5547 GB, free: 53.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6547, allocations: 0 / 0.5547 GB, free: 53.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02253/0.6773, allocations: 6.425 MB / 0.561 GB, free: 46.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.6775, allocations: 148.1 kB / 0.5611 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.6776, allocations: 19.95 kB / 0.5611 GB, free: 46.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.6789, allocations: 215.8 kB / 0.5613 GB, free: 46.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.6792, allocations: 100.8 kB / 0.5614 GB, free: 46.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-05/0.6792, allocations: 35.97 kB / 0.5615 GB, free: 46.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003005/0.6796, allocations: 346.8 kB / 0.5618 GB, free: 46.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6796, allocations: 0 / 0.5618 GB, free: 46.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006715/0.6802, allocations: 267.8 kB / 0.5621 GB, free: 45.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002386/0.6805, allocations: 146.9 kB / 0.5622 GB, free: 45.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004974/0.6855, allocations: 2.189 MB / 0.5643 GB, free: 43.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6855, allocations: 4.062 kB / 0.5643 GB, free: 43.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003921/0.6894, allocations: 1.3 MB / 0.5656 GB, free: 42.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.6899, allocations: 110.2 kB / 0.5657 GB, free: 42.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.6931, allocations: 2.088 MB / 0.5677 GB, free: 39.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.6934, allocations: 0.9665 MB / 0.5687 GB, free: 38.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002624/0.6936, allocations: 60.09 kB / 0.5687 GB, free: 38.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.6938, allocations: 35.44 kB / 0.5688 GB, free: 38.84 MB / 378.7 MB Notification: Performance of SimCode: time 4.1e-07/0.6938, allocations: 3.938 kB / 0.5688 GB, free: 38.84 MB / 378.7 MB Notification: Performance of Templates: time 0.02218/0.7159, allocations: 19.83 MB / 0.5882 GB, free: 19.15 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches