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.001174/0.001174, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.0012/0.0012, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.356/1.356, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 50.86 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09662, allocations: 49.43 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006282/0.1029, allocations: 4.961 MB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.1058, allocations: 1.256 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007392/0.1065, allocations: 8 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004633/0.1071, allocations: 130.7 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009344/0.108, allocations: 249.7 kB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009549/0.109, allocations: 315.4 kB / 357.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001804/0.1108, allocations: 1.095 MB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005378/0.1114, allocations: 266.5 kB / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007057/0.1121, allocations: 414.5 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007995/0.1129, allocations: 474 kB / 359.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002882/0.1132, allocations: 84 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004/0.1136, allocations: 112 kB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002555/0.1139, allocations: 195.3 kB / 360.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006142/0.1145, allocations: 449.8 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.1156, allocations: 0.9929 MB / 361.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1156, allocations: 0 / 361.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1156, allocations: 3.938 kB / 361.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.923e-05/0.1157, allocations: 0 / 361.7 MB, free: 9.402 MB / 302.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.002774/0.1185, allocations: 1.254 MB / 362.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1185, allocations: 8.031 kB / 362.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.1187, allocations: 99.81 kB / 363 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.1193, allocations: 479.6 kB / 363.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.1194, allocations: 53.61 kB / 363.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.1195, allocations: 68.28 kB / 363.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.1209, allocations: 0.6509 MB / 364.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.1209, allocations: 4 kB / 364.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.121, allocations: 24 kB / 364.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.121, allocations: 19.94 kB / 364.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.1227, allocations: 0.7 MB / 365 MB, free: 5.945 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.00415/0.1269, allocations: 2.382 MB / 367.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.1284, allocations: 0.5866 MB / 368 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000754/0.1292, allocations: 334 kB / 368.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.365e-05/0.1292, allocations: 12.41 kB / 368.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.1303, allocations: 421.4 kB / 368.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.446e-06/0.1303, allocations: 0 / 368.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.236/0.3663, allocations: 15.41 MB / 384.1 MB, free: 22.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.3664, allocations: 145.3 kB / 384.3 MB, free: 22.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006719/0.3671, allocations: 0.5209 MB / 384.8 MB, free: 21.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002227/0.3673, allocations: 47.05 kB / 384.8 MB, free: 21.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.3676, allocations: 387.3 kB / 385.2 MB, free: 21.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003359/0.3679, allocations: 311.3 kB / 385.5 MB, free: 21.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003781/0.3683, allocations: 187.2 kB / 385.7 MB, free: 21.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.841e-05/0.3684, allocations: 382.5 kB / 386.1 MB, free: 20.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002007/0.3704, allocations: 0.7224 MB / 386.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.3725, allocations: 0.962 MB / 387.8 MB, free: 19.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003896/0.3764, allocations: 1.696 MB / 389.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.3764, allocations: 3.719 kB / 389.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0217/0.3982, allocations: 5.375 MB / 394.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.559e-05/0.3983, allocations: 67.39 kB / 394.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.3983, allocations: 8 kB / 394.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03133/0.4296, allocations: 6.852 MB / 401.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006864/0.4304, allocations: 147.8 kB / 401.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006017/0.4364, allocations: 3.156 MB / 405.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/0.4381, allocations: 183.8 kB / 405.2 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.4383, allocations: 51.97 kB / 405.3 MB, free: 3.52 MB / 302.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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004556/0.4387, allocations: 225.4 kB / 405.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/0.4389, allocations: 83 kB / 405.6 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02074/0.4597, allocations: 5.096 MB / 410.7 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/0.4597, allocations: 12 kB / 410.7 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.4598, allocations: 0 / 410.7 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.4598, allocations: 3.984 kB / 410.7 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.4616, allocations: 1.107 MB / 411.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.4617, allocations: 7.938 kB / 411.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005788/0.4623, allocations: 99.81 kB / 411.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04043/0.5027, allocations: 6.801 MB / 418.7 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003006/0.5031, allocations: 23.98 kB / 418.7 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009321/0.5124, allocations: 3.045 MB / 421.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5124, allocations: 0 / 421.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03624/0.5487, allocations: 5.986 MB / 427.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003684/0.5491, allocations: 150.9 kB / 427.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004315/0.5496, allocations: 24 kB / 427.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002369/0.552, allocations: 163.8 kB / 428.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004234/0.5524, allocations: 104.8 kB / 428.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/0.5526, allocations: 35.47 kB / 428.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006907/0.5533, allocations: 346.9 kB / 428.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5534, allocations: 0 / 428.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001386/0.5548, allocations: 269.6 kB / 428.8 MB, free: 11.82 MB / 334.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000392/0.5552, allocations: 127.3 kB / 429 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.01053/0.5657, allocations: 2.196 MB / 431.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.772e-05/0.5658, allocations: 8.062 kB / 431.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005372/0.5712, allocations: 1.085 MB / 432.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.5727, allocations: 131.5 kB / 432.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006134/0.5788, allocations: 1.817 MB / 434.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.5794, allocations: 0.9507 MB / 435.2 MB, free: 5.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.5798, allocations: 35.44 kB / 435.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of SimCode: time 9.51e-07/0.5798, allocations: 0 / 435.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of Templates: time 0.03384/0.6136, allocations: 17.41 MB / 452.6 MB, free: 4.023 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/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