Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00156/0.00156, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.424/1.424, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 64.97 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1066, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006545/0.1132, allocations: 4.959 MB / 363.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.1158, allocations: 1.283 MB / 364.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003468/0.1162, allocations: 8 kB / 364.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003064/0.1166, allocations: 134.7 kB / 364.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000486/0.1171, allocations: 249.7 kB / 365.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000808/0.1179, allocations: 315.4 kB / 365.4 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.1191, allocations: 1.095 MB / 366.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.1195, allocations: 266.5 kB / 366.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005781/0.1201, allocations: 414.5 kB / 367.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005507/0.1207, allocations: 462 kB / 367.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.1208, allocations: 88 kB / 367.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.121, allocations: 116 kB / 367.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.1212, allocations: 191.3 kB / 368 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.1217, allocations: 453.8 kB / 368.4 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009847/0.1227, allocations: 0.9968 MB / 369.4 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.525e-06/0.1227, allocations: 4 kB / 369.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1227, allocations: 0 / 369.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.1227, allocations: 0 / 369.4 MB, free: 2.906 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.002613/0.1253, allocations: 1.258 MB / 370.7 MB, free: 1.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1254, allocations: 8.031 kB / 370.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.1256, allocations: 95.81 kB / 370.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006494/0.1262, allocations: 479.4 kB / 371.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.1263, allocations: 53.67 kB / 371.3 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.1264, allocations: 64.38 kB / 371.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.1278, allocations: 0.6509 MB / 372 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.1279, allocations: 0 / 372 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.29e-05/0.1279, allocations: 35.92 kB / 372 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.128, allocations: 16 kB / 372.1 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1395/0.2675, allocations: 0.6882 MB / 372.7 MB, free: 20.07 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.003953/0.2715, allocations: 2.381 MB / 375.1 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.273, allocations: 0.5865 MB / 375.7 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008077/0.2738, allocations: 331.8 kB / 376 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.2739, allocations: 13.55 kB / 376 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009685/0.2748, allocations: 424.5 kB / 376.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.206e-06/0.2749, allocations: 0 / 376.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06751/0.3424, allocations: 15.42 MB / 391.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.3425, allocations: 153.3 kB / 392 MB, free: 12.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006542/0.3432, allocations: 0.5168 MB / 392.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.3433, allocations: 47.05 kB / 392.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.3435, allocations: 385.8 kB / 393 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.3438, allocations: 323.8 kB / 393.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/0.3441, allocations: 182.5 kB / 393.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.962e-05/0.3442, allocations: 382.8 kB / 393.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/0.346, allocations: 0.7205 MB / 394.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/0.3478, allocations: 0.9629 MB / 395.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003561/0.3514, allocations: 1.689 MB / 397.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3514, allocations: 7.938 kB / 397.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0216/0.373, allocations: 5.37 MB / 402.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.624e-05/0.3731, allocations: 71.39 kB / 402.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.3731, allocations: 4 kB / 402.7 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03442/0.4075, allocations: 6.848 MB / 409.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007566/0.4083, allocations: 147.7 kB / 409.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007447/0.4158, allocations: 3.172 MB / 412.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.4175, allocations: 175.8 kB / 413 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.4177, allocations: 51.97 kB / 413 MB, free: 7.805 MB / 318.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.0004933/0.4182, allocations: 229.6 kB / 413.3 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.4183, allocations: 79.06 kB / 413.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02296/0.4413, allocations: 5.11 MB / 418.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.4414, allocations: 8 kB / 418.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4414, allocations: 3.984 kB / 418.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.298e-05/0.4414, allocations: 3.984 kB / 418.5 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.4431, allocations: 1.107 MB / 419.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/0.4431, allocations: 4 kB / 419.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.4437, allocations: 91.88 kB / 419.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03528/0.479, allocations: 6.797 MB / 426.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002343/0.4793, allocations: 27.97 kB / 426.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006433/0.4857, allocations: 3.037 MB / 429.5 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4857, allocations: 2.938 kB / 429.5 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02548/0.5112, allocations: 5.983 MB / 435.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/0.5115, allocations: 148.1 kB / 435.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.5117, allocations: 27.94 kB / 435.7 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.5131, allocations: 167.8 kB / 435.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/0.5134, allocations: 92.88 kB / 436 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.295e-05/0.5135, allocations: 35.97 kB / 436 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004443/0.514, allocations: 354.8 kB / 436.3 MB, free: 376 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.514, allocations: 0 / 436.3 MB, free: 376 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007832/0.5148, allocations: 260 kB / 436.6 MB, free: 116 kB / 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.0002794/0.515, allocations: 130.6 kB / 436.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00742/0.5225, allocations: 2.194 MB / 438.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5225, allocations: 7.938 kB / 438.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003774/0.5263, allocations: 1.085 MB / 440 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007932/0.5271, allocations: 141.4 kB / 440.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/0.5312, allocations: 1.813 MB / 442 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.5318, allocations: 0.9507 MB / 442.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001745/0.5319, allocations: 35.44 kB / 442.9 MB, free: 9.691 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.532, allocations: 0 / 442.9 MB, free: 9.691 MB / 350.1 MB Notification: Performance of Templates: time 0.02285/0.5548, allocations: 17.41 MB / 460.4 MB, free: 8.316 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches