Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 210.8 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 258.2 MB, free: 7.793 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.92 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2304, allocations: 53.36 MB / 432.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006154/0.2366, allocations: 4.425 MB / 436.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002524/0.2391, allocations: 1.241 MB / 438 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003035/0.2394, allocations: 19.88 kB / 438 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003121/0.2397, allocations: 126.7 kB / 438.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004861/0.2402, allocations: 269.6 kB / 438.4 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.2409, allocations: 311.5 kB / 438.7 MB, free: 308 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00124/0.2421, allocations: 1.091 MB / 439.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003534/0.2425, allocations: 191 kB / 440 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005187/0.243, allocations: 430.5 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006247/0.2436, allocations: 478 kB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.2438, allocations: 92 kB / 441 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002278/0.244, allocations: 116 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.2442, allocations: 203.3 kB / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004084/0.2446, allocations: 382.2 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.2457, allocations: 1.037 MB / 442.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2457, allocations: 4 kB / 442.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2457, allocations: 0 / 442.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.2457, allocations: 0 / 442.7 MB, free: 12.3 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.002686/0.2484, allocations: 1.213 MB / 443.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2485, allocations: 12.03 kB / 443.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.2487, allocations: 96.33 kB / 444 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008024/0.2495, allocations: 430.1 kB / 444.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.335e-05/0.2495, allocations: 49.69 kB / 444.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.2497, allocations: 72.31 kB / 444.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.2512, allocations: 0.7803 MB / 445.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.2512, allocations: 0 / 445.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.386e-05/0.2513, allocations: 31.98 kB / 445.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.2513, allocations: 12 kB / 445.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.2531, allocations: 0.696 MB / 446.1 MB, free: 8.812 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.004198/0.2573, allocations: 1.796 MB / 447.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.2588, allocations: 0.5514 MB / 448.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007498/0.2595, allocations: 313.9 kB / 448.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.243e-05/0.2596, allocations: 12.44 kB / 448.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.2607, allocations: 0.5371 MB / 449.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.746e-06/0.2607, allocations: 0 / 449.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07619/0.3369, allocations: 15.26 MB / 464.6 MB, free: 6.148 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.337, allocations: 141.5 kB / 464.7 MB, free: 5.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007013/0.3377, allocations: 0.5262 MB / 465.2 MB, free: 5.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001752/0.3379, allocations: 49.7 kB / 465.3 MB, free: 5.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.3382, allocations: 392.7 kB / 465.7 MB, free: 4.996 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/0.3385, allocations: 333.2 kB / 466 MB, free: 4.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003984/0.3389, allocations: 186.5 kB / 466.2 MB, free: 4.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.3391, allocations: 386.8 kB / 466.5 MB, free: 4.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.3412, allocations: 0.7746 MB / 467.3 MB, free: 3.305 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.3435, allocations: 1.096 MB / 468.4 MB, free: 2.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004096/0.3476, allocations: 1.689 MB / 470.1 MB, free: 316 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.56e-05/0.3476, allocations: 7.938 kB / 470.1 MB, free: 308 kB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02444/0.3721, allocations: 5.405 MB / 475.5 MB, free: 10.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.97e-05/0.3722, allocations: 63.41 kB / 475.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.3722, allocations: 8 kB / 475.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03636/0.4086, allocations: 6.837 MB / 482.4 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007362/0.4093, allocations: 155.7 kB / 482.6 MB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007174/0.4165, allocations: 3.157 MB / 485.7 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.4181, allocations: 180 kB / 485.9 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.4182, allocations: 51.97 kB / 486 MB, free: 332 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.0004402/0.4187, allocations: 239.7 kB / 486.2 MB, free: 84 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.4188, allocations: 79.48 kB / 486.3 MB, free: 4 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02353/0.4424, allocations: 5.079 MB / 491.3 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/0.4424, allocations: 12 kB / 491.4 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.4424, allocations: 0 / 491.4 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.571e-05/0.4424, allocations: 3.984 kB / 491.4 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.4438, allocations: 0.7607 MB / 492.1 MB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4438, allocations: 0 / 492.1 MB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005438/0.4444, allocations: 95.88 kB / 492.2 MB, free: 10 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03649/0.4809, allocations: 6.785 MB / 499 MB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001889/0.4811, allocations: 27.97 kB / 499 MB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006278/0.4873, allocations: 3.045 MB / 0.4903 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4873, allocations: 4 kB / 0.4903 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0265/0.5138, allocations: 5.948 MB / 0.4961 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.5141, allocations: 67.52 kB / 0.4962 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.5143, allocations: 23.92 kB / 0.4962 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/0.5157, allocations: 168.1 kB / 0.4964 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/0.516, allocations: 104.8 kB / 0.4965 GB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.694e-05/0.5161, allocations: 35.92 kB / 0.4965 GB, free: 9.703 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000442/0.5165, allocations: 354.8 kB / 0.4968 GB, free: 9.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5165, allocations: 0 / 0.4968 GB, free: 9.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007766/0.5173, allocations: 259.9 kB / 0.4971 GB, free: 9.105 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.0002649/0.5176, allocations: 139 kB / 0.4972 GB, free: 8.961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007276/0.5249, allocations: 2.152 MB / 0.4993 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5249, allocations: 0 / 0.4993 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/0.5284, allocations: 1.012 MB / 0.5003 GB, free: 5.758 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007863/0.5292, allocations: 128.5 kB / 0.5004 GB, free: 5.637 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004097/0.5333, allocations: 1.835 MB / 0.5022 GB, free: 3.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.5337, allocations: 357.6 kB / 0.5026 GB, free: 3.391 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.5338, allocations: 35.44 kB / 0.5026 GB, free: 3.355 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5338, allocations: 0 / 0.5026 GB, free: 3.355 MB / 414.1 MB Notification: Performance of Templates: time 0.02433/0.5582, allocations: 17.76 MB / 0.5199 GB, free: 1.617 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_Modelica.Electrical.Analog.Examples.HeatingNPN_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: 8.371027992980089]