Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001554/0.001554, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.438/1.438, allocations: 227.7 MB / 247.7 MB, free: 10.31 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.00196/0.00196, allocations: 68.48 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09897, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006503/0.1055, allocations: 4.944 MB / 363.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.1084, allocations: 1.291 MB / 364.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004868/0.1089, allocations: 15.94 kB / 364.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.1093, allocations: 118.7 kB / 364.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005639/0.1099, allocations: 253.6 kB / 365.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007643/0.1107, allocations: 307.5 kB / 365.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.1118, allocations: 1.095 MB / 366.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004276/0.1123, allocations: 266.5 kB / 366.7 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005765/0.1129, allocations: 414.5 kB / 367.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005634/0.1134, allocations: 466 kB / 367.6 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.1136, allocations: 88 kB / 367.7 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.1138, allocations: 112 kB / 367.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.114, allocations: 199.3 kB / 368 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004244/0.1144, allocations: 441.8 kB / 368.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.1155, allocations: 0.9968 MB / 369.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1155, allocations: 0 / 369.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1155, allocations: 4 kB / 369.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.1155, allocations: 0 / 369.4 MB, free: 2.902 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.002562/0.1181, allocations: 1.258 MB / 370.7 MB, free: 1.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1181, allocations: 12.03 kB / 370.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1183, allocations: 91.81 kB / 370.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006226/0.119, allocations: 487.4 kB / 371.2 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.119, allocations: 57.67 kB / 371.3 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.1191, allocations: 64.38 kB / 371.3 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.1206, allocations: 0.6548 MB / 372 MB, free: 180 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.1206, allocations: 3.984 kB / 372 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/0.1207, allocations: 24 kB / 372 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.1207, allocations: 16 kB / 372 MB, free: 136 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1713/0.292, allocations: 0.6912 MB / 372.7 MB, free: 20.19 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.004376/0.2964, allocations: 2.374 MB / 375.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.2979, allocations: 0.5869 MB / 375.7 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000779/0.2987, allocations: 332.9 kB / 376 MB, free: 18.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.2988, allocations: 11.89 kB / 376 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.2998, allocations: 424.1 kB / 376.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.676e-06/0.2998, allocations: 0 / 376.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06797/0.3678, allocations: 15.43 MB / 391.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.3679, allocations: 147.8 kB / 392 MB, free: 12.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006018/0.3685, allocations: 0.5164 MB / 392.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000165/0.3687, allocations: 45.67 kB / 392.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.3689, allocations: 383.3 kB / 393 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.3691, allocations: 314.5 kB / 393.3 MB, free: 12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003023/0.3694, allocations: 186.5 kB / 393.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.3695, allocations: 382.8 kB / 393.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.3712, allocations: 0.7244 MB / 394.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.3731, allocations: 0.9648 MB / 395.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004197/0.3773, allocations: 1.689 MB / 397.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.3773, allocations: 4 kB / 397.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02672/0.4041, allocations: 5.369 MB / 402.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.495e-05/0.4042, allocations: 63.39 kB / 402.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.4042, allocations: 8 kB / 402.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03812/0.4423, allocations: 6.84 MB / 409.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.4431, allocations: 143.8 kB / 409.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006345/0.4495, allocations: 3.024 MB / 412.6 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.4511, allocations: 175.8 kB / 412.8 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.4513, allocations: 47.97 kB / 412.9 MB, free: 8.098 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.0004606/0.4517, allocations: 233.6 kB / 413.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.4519, allocations: 83.05 kB / 413.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02248/0.4744, allocations: 5.099 MB / 418.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.333e-05/0.4745, allocations: 15.98 kB / 418.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.4745, allocations: 0 / 418.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-05/0.4745, allocations: 5.953 kB / 418.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.4762, allocations: 1.094 MB / 419.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.4762, allocations: 3.5 kB / 419.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005445/0.4767, allocations: 103.8 kB / 419.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0339/0.5106, allocations: 6.777 MB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002064/0.5109, allocations: 27.97 kB / 426.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006131/0.517, allocations: 3.029 MB / 429.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5171, allocations: 2.375 kB / 429.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0244/0.5415, allocations: 5.98 MB / 435.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002493/0.5418, allocations: 152 kB / 435.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.542, allocations: 26.28 kB / 435.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.5433, allocations: 171.8 kB / 435.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.5436, allocations: 92.88 kB / 435.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-05/0.5437, allocations: 31.97 kB / 435.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004722/0.5442, allocations: 350.8 kB / 436.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5442, allocations: 4 kB / 436.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007818/0.545, allocations: 264 kB / 436.4 MB, free: 444 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.0002831/0.5453, allocations: 130.2 kB / 436.5 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006499/0.5518, allocations: 2.061 MB / 438.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.5518, allocations: 8.188 kB / 438.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003714/0.5555, allocations: 1.085 MB / 439.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008079/0.5564, allocations: 134 kB / 439.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.5604, allocations: 1.827 MB / 441.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006153/0.5611, allocations: 0.9507 MB / 442.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.5612, allocations: 31.44 kB / 442.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5613, allocations: 4 kB / 442.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of Templates: time 0.02408/0.5853, allocations: 17.41 MB / 460 MB, free: 8.762 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches