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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 8.074 MB / 206.1 MB " [Timeout remaining time 178] 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=5041,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=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "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.001993/0.001993, allocations: 64.77 kB / 379.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2702, allocations: 53.37 MB / 432.4 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006434/0.2767, allocations: 4.995 MB / 437.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.2794, allocations: 1.291 MB / 438.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004584/0.2799, allocations: 11.94 kB / 438.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.2802, allocations: 130.7 kB / 438.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005571/0.2808, allocations: 257.7 kB / 439.1 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007425/0.2815, allocations: 315.5 kB / 439.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2827, allocations: 1.095 MB / 440.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003639/0.2831, allocations: 194.9 kB / 440.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.2836, allocations: 426.5 kB / 441.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006005/0.2842, allocations: 482 kB / 441.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.2843, allocations: 92 kB / 441.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002217/0.2846, allocations: 108 kB / 441.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.2848, allocations: 203.3 kB / 442 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004281/0.2852, allocations: 457.8 kB / 442.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.2863, allocations: 1.037 MB / 443.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.2863, allocations: 0 / 443.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2863, allocations: 0 / 443.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.2863, allocations: 4 kB / 443.5 MB, free: 11.88 MB / 350.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.002703/0.289, allocations: 1.209 MB / 444.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.2891, allocations: 8.031 kB / 444.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.2892, allocations: 100.3 kB / 444.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007376/0.29, allocations: 430.1 kB / 445.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.29, allocations: 49.67 kB / 445.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.2902, allocations: 72.33 kB / 445.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.2916, allocations: 0.6548 MB / 446 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.2916, allocations: 3.984 kB / 446 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.2917, allocations: 28 kB / 446 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.2917, allocations: 16 kB / 446 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.2934, allocations: 0.6883 MB / 446.7 MB, free: 8.551 MB / 350.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.004052/0.2974, allocations: 2.308 MB / 449 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.2989, allocations: 0.5561 MB / 449.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000726/0.2996, allocations: 310 kB / 449.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.938e-05/0.2997, allocations: 16.41 kB / 449.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009384/0.3006, allocations: 425.4 kB / 450.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.843e-06/0.3006, allocations: 7.875 kB / 450.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06949/0.3701, allocations: 15.23 MB / 465.6 MB, free: 5.465 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.3702, allocations: 141.5 kB / 465.7 MB, free: 5.293 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.3713, allocations: 0.5186 MB / 466.2 MB, free: 4.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002369/0.3715, allocations: 53.7 kB / 466.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/0.3719, allocations: 396.7 kB / 466.7 MB, free: 4.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003223/0.3722, allocations: 325.2 kB / 467 MB, free: 3.992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000381/0.3726, allocations: 186.6 kB / 467.2 MB, free: 3.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.3728, allocations: 390.7 kB / 467.5 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00205/0.3748, allocations: 0.7244 MB / 468.3 MB, free: 2.688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00219/0.377, allocations: 0.9512 MB / 469.2 MB, free: 1.648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004057/0.3811, allocations: 1.701 MB / 470.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-06/0.3811, allocations: 0 / 470.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02416/0.4052, allocations: 5.331 MB / 476.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.4053, allocations: 63.53 kB / 476.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.4054, allocations: 15.92 kB / 476.3 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0342/0.4396, allocations: 6.828 MB / 483.1 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007287/0.4403, allocations: 155.7 kB / 483.3 MB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006313/0.4466, allocations: 3.009 MB / 486.3 MB, free: 348 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.4483, allocations: 184.1 kB / 486.5 MB, free: 164 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4484, allocations: 51.97 kB / 486.5 MB, free: 112 kB / 382.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.0004708/0.4489, allocations: 233.7 kB / 486.8 MB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.449, allocations: 83.48 kB / 486.8 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/0.4712, allocations: 5.064 MB / 491.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/0.4712, allocations: 8 kB / 491.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.4712, allocations: 0 / 491.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/0.4713, allocations: 3.984 kB / 491.9 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.473, allocations: 1.072 MB / 493 MB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.473, allocations: 4 kB / 493 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005187/0.4735, allocations: 95.81 kB / 493.1 MB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03504/0.5085, allocations: 6.781 MB / 499.9 MB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002382/0.5088, allocations: 23.97 kB / 499.9 MB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006331/0.5151, allocations: 3.033 MB / 0.4911 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5151, allocations: 3.984 kB / 0.4911 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03163/0.5467, allocations: 5.94 MB / 0.4969 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.5471, allocations: 75.41 kB / 0.497 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003908/0.5475, allocations: 24 kB / 0.497 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/0.5495, allocations: 168.1 kB / 0.4972 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005128/0.55, allocations: 96.83 kB / 0.4973 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001719/0.5501, allocations: 43.91 kB / 0.4973 GB, free: 9.199 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007034/0.5508, allocations: 354.8 kB / 0.4977 GB, free: 8.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5508, allocations: 4 kB / 0.4977 GB, free: 8.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001328/0.5522, allocations: 256 kB / 0.4979 GB, free: 8.602 MB / 414.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.000482/0.5527, allocations: 139 kB / 0.4981 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009051/0.5617, allocations: 1.974 MB / 0.5 GB, free: 6.453 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.5617, allocations: 0 / 0.5 GB, free: 6.453 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004922/0.5666, allocations: 1.007 MB / 0.501 GB, free: 5.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.568, allocations: 126.2 kB / 0.5011 GB, free: 5.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006082/0.574, allocations: 1.806 MB / 0.5029 GB, free: 3.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009595/0.575, allocations: 0.9507 MB / 0.5038 GB, free: 2.516 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004169/0.5754, allocations: 54.28 kB / 0.5038 GB, free: 2.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.5756, allocations: 43.42 kB / 0.5039 GB, free: 2.418 MB / 414.1 MB Notification: Performance of SimCode: time 1.953e-06/0.5756, allocations: 3.938 kB / 0.5039 GB, free: 2.414 MB / 414.1 MB Notification: Performance of Templates: time 0.04687/0.6225, allocations: 24.09 MB / 0.5274 GB, free: 10.41 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.039815213531256]