Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001072, allocations: 91.02 kB / 16.31 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 179.3 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.602/1.602, allocations: 223.2 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004323, allocations: 6.094 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1448, allocations: 50.42 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005352/0.1502, allocations: 4.285 MB / 355.5 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.1533, allocations: 1.233 MB / 356.8 MB, free: 6.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008058/0.1541, allocations: 15.94 kB / 356.8 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004268/0.1546, allocations: 83.3 kB / 356.8 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008755/0.1555, allocations: 214.1 kB / 357.1 MB, free: 5.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008835/0.1564, allocations: 231.6 kB / 357.3 MB, free: 5.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001601/0.158, allocations: 0.9818 MB / 358.3 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005482/0.1585, allocations: 207.5 kB / 358.5 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007287/0.1593, allocations: 354.6 kB / 358.8 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007101/0.16, allocations: 414.3 kB / 359.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.894e-05/0.1601, allocations: 44 kB / 359.3 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.1603, allocations: 67.98 kB / 359.3 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.1605, allocations: 151.3 kB / 359.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.1607, allocations: 173.3 kB / 359.6 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008259/0.1616, allocations: 0.7401 MB / 360.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.1616, allocations: 0 / 360.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1616, allocations: 0 / 360.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.1616, allocations: 0 / 360.4 MB, free: 2.523 MB / 286.1 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.002421/0.164, allocations: 1.157 MB / 361.5 MB, free: 1.297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.1641, allocations: 12.03 kB / 361.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.1643, allocations: 90.92 kB / 361.6 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006737/0.165, allocations: 466.6 kB / 362.1 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.228e-05/0.165, allocations: 45.31 kB / 362.1 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1652, allocations: 72 kB / 362.2 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.1666, allocations: 0.6702 MB / 362.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1666, allocations: 0 / 362.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.798e-05/0.1667, allocations: 24 kB / 362.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.1667, allocations: 16 kB / 362.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1683, allocations: 0.7546 MB / 363.7 MB, free: 15.11 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003889/0.1722, allocations: 2.437 MB / 366.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.1736, allocations: 0.6402 MB / 366.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.1744, allocations: 362 kB / 367.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.519e-05/0.1745, allocations: 8.422 kB / 367.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009494/0.1754, allocations: 464.7 kB / 367.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.703e-06/0.1754, allocations: 0 / 367.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06399/0.2394, allocations: 16.73 MB / 384.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.2396, allocations: 145.5 kB / 384.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007309/0.2403, allocations: 0.5223 MB / 385 MB, free: 9.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001915/0.2405, allocations: 41.7 kB / 385 MB, free: 9.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002852/0.2408, allocations: 395.8 kB / 385.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003006/0.2411, allocations: 311.5 kB / 385.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.722e-05/0.2412, allocations: 20 kB / 385.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.2414, allocations: 382.8 kB / 386.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/0.2433, allocations: 0.7947 MB / 386.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.2455, allocations: 1.029 MB / 387.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.2475, allocations: 0.8885 MB / 388.8 MB, free: 5.543 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.2476, allocations: 0 / 388.8 MB, free: 5.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02169/0.2693, allocations: 5.651 MB / 394.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.431e-05/0.2694, allocations: 66.2 kB / 394.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.2694, allocations: 8 kB / 394.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03259/0.302, allocations: 7.321 MB / 401.8 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000814/0.3029, allocations: 179.7 kB / 402 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007261/0.3102, allocations: 3.227 MB / 405.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.312, allocations: 215.9 kB / 405.5 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.3122, allocations: 51.97 kB / 405.5 MB, free: 4.719 MB / 334.1 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.0005531/0.3128, allocations: 225.6 kB / 405.7 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.313, allocations: 79.06 kB / 405.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02101/0.334, allocations: 5.459 MB / 411.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/0.3341, allocations: 12 kB / 411.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.3341, allocations: 3.938 kB / 411.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/0.3341, allocations: 3.984 kB / 411.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.3358, allocations: 1.104 MB / 412.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.3359, allocations: 256 / 412.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/0.3364, allocations: 127.9 kB / 412.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03123/0.3676, allocations: 7.285 MB / 419.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003085/0.368, allocations: 31.97 kB / 419.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005868/0.3739, allocations: 3.08 MB / 422.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.3739, allocations: 3.953 kB / 422.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3248/0.6987, allocations: 6.407 MB / 429.3 MB, free: 68.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.6992, allocations: 146.2 kB / 429.5 MB, free: 68.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004127/0.6996, allocations: 20.14 kB / 429.5 MB, free: 68.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/0.7011, allocations: 220.3 kB / 429.7 MB, free: 68.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/0.7015, allocations: 106.2 kB / 429.8 MB, free: 68.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.7017, allocations: 30.88 kB / 429.8 MB, free: 68.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005612/0.7022, allocations: 351.5 kB / 430.2 MB, free: 68.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7022, allocations: 0 / 430.2 MB, free: 68.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001138/0.7034, allocations: 261.6 kB / 430.4 MB, free: 68.11 MB / 350.1 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.0003641/0.7038, allocations: 131.4 kB / 430.6 MB, free: 68.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.008028/0.7118, allocations: 2.333 MB / 432.9 MB, free: 67.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.7118, allocations: 4.062 kB / 432.9 MB, free: 67.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003562/0.7154, allocations: 1.162 MB / 434.1 MB, free: 67.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.7167, allocations: 120.8 kB / 434.2 MB, free: 67.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005244/0.7219, allocations: 2.089 MB / 436.3 MB, free: 67.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005726/0.7225, allocations: 0.9514 MB / 437.2 MB, free: 66.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004175/0.723, allocations: 60.84 kB / 437.3 MB, free: 66.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.7231, allocations: 31.44 kB / 437.3 MB, free: 66.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.452e-06/0.7231, allocations: 0 / 437.3 MB, free: 66.29 MB / 350.1 MB Notification: Performance of Templates: time 0.03091/0.754, allocations: 19.85 MB / 457.2 MB, free: 51.69 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches