Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002272/0.002272, allocations: 176.8 kB / 17.41 MB, free: 4.383 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.411/4.411, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.001167/0.001167, allocations: 85.03 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006424/0.0006429, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7383/0.739, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2319/0.971, allocations: 81.21 MB / 456.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004861/0.9716, allocations: 75.97 kB / 457 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05612/1.028, allocations: 12.14 MB / 469.1 MB, free: 3.156 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.259e-06/1.028, allocations: 0 / 469.1 MB, free: 3.156 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.417e-05/1.028, allocations: 16 kB / 469.2 MB, free: 3.141 MB / 346.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.003902/1.032, allocations: 1.116 MB / 470.3 MB, free: 1.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.828e-05/1.032, allocations: 8.031 kB / 470.3 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/1.032, allocations: 88 kB / 470.4 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/1.034, allocations: 0.5063 MB / 470.9 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.626e-05/1.034, allocations: 45.69 kB / 470.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/1.034, allocations: 64.38 kB / 471 MB, free: 1.207 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/1.036, allocations: 0.6629 MB / 471.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/1.036, allocations: 4.094 kB / 471.6 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/1.037, allocations: 23.94 kB / 471.7 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.173e-05/1.037, allocations: 23.98 kB / 471.7 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/1.039, allocations: 0.7273 MB / 472.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01116/1.05, allocations: 2.298 MB / 474.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/1.053, allocations: 0.6265 MB / 475.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001218/1.054, allocations: 366.6 kB / 475.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.932e-05/1.054, allocations: 4.438 kB / 475.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/1.056, allocations: 461.4 kB / 476.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 6.311e-06/1.056, allocations: 0 / 476.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1134/1.169, allocations: 16.56 MB / 492.7 MB, free: 11.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002163/1.17, allocations: 149.5 kB / 492.9 MB, free: 11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/1.171, allocations: 490.8 kB / 493.3 MB, free: 10.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000401/1.171, allocations: 41.7 kB / 493.4 MB, free: 10.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004935/1.172, allocations: 367.9 kB / 493.7 MB, free: 10.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005416/1.172, allocations: 315.5 kB / 494.1 MB, free: 9.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/1.173, allocations: 20 kB / 494.1 MB, free: 9.766 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003559/1.173, allocations: 386.8 kB / 494.5 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003185/1.176, allocations: 0.7904 MB / 495.2 MB, free: 8.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003403/1.18, allocations: 0.9938 MB / 496.2 MB, free: 7.516 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006616/1.186, allocations: 1.807 MB / 498 MB, free: 5.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/1.186, allocations: 0 / 498 MB, free: 5.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.7102/1.897, allocations: 5.598 MB / 0.4918 GB, free: 106.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002046/1.897, allocations: 64.45 kB / 0.4919 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.546e-05/1.897, allocations: 5.625 kB / 0.4919 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06361/1.961, allocations: 7.333 MB / 0.4991 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/1.962, allocations: 176 kB / 0.4992 GB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/1.972, allocations: 3.074 MB / 0.5022 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/1.976, allocations: 227.3 kB / 0.5025 GB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003992/1.976, allocations: 45.59 kB / 0.5025 GB, free: 105.4 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 () * Number of clocked 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.001344/1.978, allocations: 221.3 kB / 0.5027 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005418/1.978, allocations: 75.28 kB / 0.5028 GB, free: 105.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03948/2.018, allocations: 5.466 MB / 0.5081 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.76e-05/2.018, allocations: 7.688 kB / 0.5081 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/2.018, allocations: 1.203 kB / 0.5081 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-05/2.018, allocations: 3.844 kB / 0.5081 GB, free: 105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003374/2.021, allocations: 1.088 MB / 0.5092 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-05/2.021, allocations: 0 / 0.5092 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009634/2.022, allocations: 125.9 kB / 0.5093 GB, free: 104.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05638/2.079, allocations: 7.286 MB / 0.5164 GB, free: 99.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005233/2.079, allocations: 23.98 kB / 0.5165 GB, free: 99.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/2.091, allocations: 3.25 MB / 0.5196 GB, free: 95.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/2.091, allocations: 0 / 0.5196 GB, free: 95.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04361/2.135, allocations: 6.419 MB / 0.5259 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004763/2.135, allocations: 144.1 kB / 0.526 GB, free: 89.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006206/2.136, allocations: 26.52 kB / 0.5261 GB, free: 89.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002771/2.139, allocations: 207.8 kB / 0.5263 GB, free: 88.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005681/2.139, allocations: 100.8 kB / 0.5264 GB, free: 88.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/2.14, allocations: 32.59 kB / 0.5264 GB, free: 88.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009869/2.141, allocations: 337.2 kB / 0.5267 GB, free: 88.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.141, allocations: 1.875 kB / 0.5267 GB, free: 88.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001857/2.143, allocations: 261 kB / 0.527 GB, free: 88.28 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.0006031/2.143, allocations: 146.9 kB / 0.5271 GB, free: 88.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009668/2.153, allocations: 2.188 MB / 0.5292 GB, free: 85.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/2.153, allocations: 0 / 0.5292 GB, free: 85.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007294/2.16, allocations: 1.29 MB / 0.5305 GB, free: 84.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/2.163, allocations: 130.8 kB / 0.5306 GB, free: 84.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007658/2.17, allocations: 2.069 MB / 0.5326 GB, free: 82.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007839/2.171, allocations: 0.9391 MB / 0.5336 GB, free: 81.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003961/2.172, allocations: 31.44 kB / 0.5336 GB, free: 81.47 MB / 378.7 MB Notification: Performance of SimCode: time 2.455e-06/2.172, allocations: 0 / 0.5336 GB, free: 81.47 MB / 378.7 MB Notification: Performance of Templates: time 0.04209/2.214, allocations: 16.74 MB / 0.5499 GB, free: 64.79 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches