Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 199.4 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.5 MB / 245.3 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007649/0.0007649, allocations: 102.6 kB / 297.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002018, allocations: 8 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.176, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08537/0.2614, allocations: 83.83 MB / 492.5 MB, free: 7.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.2616, allocations: 67.97 kB / 492.5 MB, free: 7.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03433/0.2959, allocations: 12.82 MB / 0.4935 GB, free: 10.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.296, allocations: 0 / 0.4935 GB, free: 10.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.804e-05/0.296, allocations: 12 kB / 0.4935 GB, free: 10.84 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.002385/0.2984, allocations: 1.155 MB / 0.4947 GB, free: 9.613 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2985, allocations: 8.031 kB / 0.4947 GB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.2987, allocations: 95.81 kB / 0.4948 GB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008301/0.2995, allocations: 0.5317 MB / 0.4953 GB, free: 8.941 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/0.2996, allocations: 45.69 kB / 0.4953 GB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.2997, allocations: 68.38 kB / 0.4954 GB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.3011, allocations: 0.6707 MB / 0.496 GB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3011, allocations: 192 / 0.496 GB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-05/0.3012, allocations: 27.94 kB / 0.4961 GB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.3012, allocations: 16 kB / 0.4961 GB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.3028, allocations: 0.7546 MB / 0.4968 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.3065, allocations: 2.341 MB / 0.4991 GB, free: 4.883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.3079, allocations: 0.6373 MB / 0.4997 GB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007374/0.3086, allocations: 357.9 kB / 0.5001 GB, free: 3.879 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.3087, allocations: 12.42 kB / 0.5001 GB, free: 3.867 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008948/0.3096, allocations: 457.4 kB / 0.5005 GB, free: 3.398 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.615e-06/0.3096, allocations: 0 / 0.5005 GB, free: 3.398 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.2016/0.5112, allocations: 16.56 MB / 0.5167 GB, free: 91.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.5113, allocations: 143.8 kB / 0.5168 GB, free: 91.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004825/0.5118, allocations: 0.5112 MB / 0.5173 GB, free: 91.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.5119, allocations: 46.92 kB / 0.5174 GB, free: 91.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.5121, allocations: 389.6 kB / 0.5177 GB, free: 90.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.5123, allocations: 314.4 kB / 0.518 GB, free: 90.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.939e-05/0.5124, allocations: 22.97 kB / 0.5181 GB, free: 90.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.626e-05/0.5124, allocations: 386 kB / 0.5184 GB, free: 90.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.5142, allocations: 0.7999 MB / 0.5192 GB, free: 90.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/0.5159, allocations: 1.023 MB / 0.5202 GB, free: 89.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/0.5193, allocations: 1.84 MB / 0.522 GB, free: 87.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5193, allocations: 2.344 kB / 0.522 GB, free: 87.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02011/0.5394, allocations: 5.636 MB / 0.5275 GB, free: 82.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/0.5395, allocations: 71.52 kB / 0.5276 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.5395, allocations: 4 kB / 0.5276 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03051/0.5701, allocations: 7.32 MB / 0.5347 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006309/0.5707, allocations: 183.7 kB / 0.5349 GB, free: 74.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004687/0.5754, allocations: 3.083 MB / 0.5379 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.5769, allocations: 223.8 kB / 0.5381 GB, free: 71.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.545e-05/0.577, allocations: 47.97 kB / 0.5382 GB, free: 71.26 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.00036/0.5774, allocations: 232.6 kB / 0.5384 GB, free: 71.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.5775, allocations: 79.06 kB / 0.5385 GB, free: 70.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02011/0.5976, allocations: 5.474 MB / 0.5438 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.5977, allocations: 8 kB / 0.5438 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5977, allocations: 0 / 0.5438 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.5977, allocations: 7.984 kB / 0.5438 GB, free: 65.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.5988, allocations: 1.103 MB / 0.5449 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.5988, allocations: 0 / 0.5449 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004947/0.5993, allocations: 131.8 kB / 0.545 GB, free: 64.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03023/0.6296, allocations: 7.288 MB / 0.5522 GB, free: 56.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.6297, allocations: 27.98 kB / 0.5522 GB, free: 56.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005406/0.6352, allocations: 3.229 MB / 0.5553 GB, free: 53.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6352, allocations: 3.828 kB / 0.5553 GB, free: 53.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02143/0.6566, allocations: 6.429 MB / 0.5616 GB, free: 47.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.6568, allocations: 144.2 kB / 0.5618 GB, free: 46.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.657, allocations: 19.94 kB / 0.5618 GB, free: 46.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.6582, allocations: 219 kB / 0.562 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.6584, allocations: 100.8 kB / 0.5621 GB, free: 46.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.084e-05/0.6585, allocations: 35.97 kB / 0.5621 GB, free: 46.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003125/0.6588, allocations: 346.8 kB / 0.5625 GB, free: 46.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6588, allocations: 1.875 kB / 0.5625 GB, free: 46.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006531/0.6595, allocations: 262.6 kB / 0.5627 GB, free: 46.02 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.0002193/0.6597, allocations: 143.1 kB / 0.5628 GB, free: 45.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004867/0.6646, allocations: 2.194 MB / 0.565 GB, free: 43.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6646, allocations: 0 / 0.565 GB, free: 43.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/0.6684, allocations: 1.299 MB / 0.5663 GB, free: 42.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006375/0.669, allocations: 133 kB / 0.5664 GB, free: 42.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.6722, allocations: 2.126 MB / 0.5685 GB, free: 40.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.6724, allocations: 0.9501 MB / 0.5694 GB, free: 39.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.6726, allocations: 35.44 kB / 0.5694 GB, free: 39.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.6726, allocations: 4 kB / 0.5694 GB, free: 39.09 MB / 378.7 MB Notification: Performance of Templates: time 0.01471/0.6873, allocations: 17.28 MB / 0.5863 GB, free: 21.88 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches