Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001341/0.001341, allocations: 171.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008721/0.0008722, allocations: 82.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.815e-05/3.817e-05, allocations: 4 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 47.57 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3581/0.4603, allocations: 81.06 MB / 451.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.4606, allocations: 71.22 kB / 451.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03489/0.4955, allocations: 12.12 MB / 463.3 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.4956, allocations: 7.984 kB / 463.3 MB, free: 1.562 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.856e-05/0.4956, allocations: 16 kB / 463.3 MB, free: 1.547 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002177/0.4978, allocations: 1.042 MB / 464.3 MB, free: 452 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4978, allocations: 12.03 kB / 464.3 MB, free: 440 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.498, allocations: 86.97 kB / 464.4 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.4988, allocations: 493.9 kB / 464.9 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.328e-05/0.4989, allocations: 49.25 kB / 465 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.499, allocations: 63.94 kB / 465 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009737/0.5, allocations: 0.5532 MB / 465.6 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.5, allocations: 0 / 465.6 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.153e-05/0.5001, allocations: 24 kB / 465.6 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.5001, allocations: 16 kB / 465.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008884/0.501, allocations: 0.5207 MB / 466.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.5046, allocations: 2.302 MB / 468.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007617/0.5054, allocations: 457 kB / 468.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003799/0.5058, allocations: 260.1 kB / 469.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.428e-05/0.5059, allocations: 12.41 kB / 469.2 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005457/0.5064, allocations: 345.6 kB / 469.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 2.545e-06/0.5065, allocations: 4 kB / 469.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.05838/0.5648, allocations: 13.48 MB / 483 MB, free: 13.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.565, allocations: 145.3 kB / 483.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00072/0.5657, allocations: 420.8 kB / 483.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002448/0.566, allocations: 45.7 kB / 483.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.5663, allocations: 363.9 kB / 483.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/0.5666, allocations: 315.5 kB / 484.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/0.5667, allocations: 16 kB / 484.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.5669, allocations: 382.8 kB / 484.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008105/0.5677, allocations: 477.9 kB / 485.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009903/0.5687, allocations: 0.673 MB / 485.8 MB, free: 10.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008726/0.5696, allocations: 0.5431 MB / 486.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.5696, allocations: 4 kB / 486.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02077/0.5904, allocations: 4.813 MB / 491.1 MB, free: 5.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.5906, allocations: 67.39 kB / 491.2 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.5906, allocations: 16.06 kB / 491.2 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03354/0.6241, allocations: 6.931 MB / 498.1 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007908/0.625, allocations: 171.8 kB / 498.3 MB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005449/0.6304, allocations: 2.825 MB / 0.4894 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/0.6322, allocations: 223.8 kB / 0.4896 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.6323, allocations: 51.92 kB / 0.4897 GB, free: 10.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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.0002925/0.6326, allocations: 160.8 kB / 0.4898 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.6328, allocations: 75.14 kB / 0.4899 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01963/0.6524, allocations: 4.681 MB / 0.4944 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/0.6525, allocations: 12 kB / 0.4945 GB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.6525, allocations: 0 / 0.4945 GB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.933e-05/0.6526, allocations: 7.984 kB / 0.4945 GB, free: 5.855 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.6543, allocations: 1.106 MB / 0.4955 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.6543, allocations: 4 kB / 0.4955 GB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005965/0.6549, allocations: 127.8 kB / 0.4957 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03146/0.6864, allocations: 6.895 MB / 0.5024 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002765/0.6867, allocations: 31.97 kB / 0.5024 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005453/0.6921, allocations: 2.849 MB / 0.5052 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.6922, allocations: 0 / 0.5052 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/0.7137, allocations: 5.302 MB / 0.5104 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004224/0.7142, allocations: 144.2 kB / 0.5105 GB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.7144, allocations: 19.95 kB / 0.5106 GB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.7158, allocations: 211.8 kB / 0.5108 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002973/0.7161, allocations: 104.6 kB / 0.5109 GB, free: 4.906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.7163, allocations: 39.91 kB / 0.5109 GB, free: 4.867 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004622/0.7167, allocations: 329.6 kB / 0.5112 GB, free: 4.547 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7167, allocations: 0 / 0.5112 GB, free: 4.547 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009048/0.7177, allocations: 260 kB / 0.5115 GB, free: 4.293 MB / 394.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) * 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.0003241/0.718, allocations: 139.1 kB / 0.5116 GB, free: 4.148 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004367/0.7224, allocations: 1.66 MB / 0.5132 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.7224, allocations: 0 / 0.5132 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/0.7256, allocations: 0.9709 MB / 0.5142 GB, free: 1.492 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006089/0.7262, allocations: 110.8 kB / 0.5143 GB, free: 1.383 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.7288, allocations: 1.196 MB / 0.5154 GB, free: 160 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004389/0.7292, allocations: 0.9587 MB / 0.5164 GB, free: 15.17 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002803/0.7295, allocations: 58.06 kB / 0.5164 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.7296, allocations: 31.44 kB / 0.5165 GB, free: 15.08 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.7296, allocations: 0 / 0.5165 GB, free: 15.08 MB / 410.7 MB Notification: Performance of Templates: time 0.2311/0.9608, allocations: 20.32 MB / 0.5363 GB, free: 132.5 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches