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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 100.7 kB / 20.96 MB, free: 480 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 149.5 kB / 24.24 MB, free: 3.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 173.3 MB / 200.8 MB, free: 12.72 MB / 190.1 MB " [Timeout remaining time 178] 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=5041,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=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 267.3 MB, free: 10.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.092e-05/3.318e-05, allocations: 2.312 kB / 267.3 MB, free: 10.17 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.00692/0.006954, allocations: 4.415 MB / 271.7 MB, free: 5.73 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003155/0.01011, allocations: 1.24 MB / 273 MB, free: 4.48 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006623/0.01077, allocations: 15.94 kB / 273 MB, free: 4.465 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005246/0.0113, allocations: 122.7 kB / 273.1 MB, free: 4.344 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001338/0.01263, allocations: 285.4 kB / 273.4 MB, free: 4.062 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.01391, allocations: 311.4 kB / 273.7 MB, free: 3.758 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.01632, allocations: 1.126 MB / 274.8 MB, free: 2.629 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005558/0.01688, allocations: 183 kB / 275 MB, free: 2.434 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001679/0.01856, allocations: 0.612 MB / 275.6 MB, free: 1.82 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009329/0.01949, allocations: 355 kB / 276 MB, free: 1.473 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002319/0.01972, allocations: 92 kB / 276 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003213/0.02004, allocations: 123.8 kB / 276.2 MB, free: 1.262 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.02025, allocations: 203.3 kB / 276.4 MB, free: 1.062 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005461/0.0208, allocations: 323.2 kB / 276.7 MB, free: 0.7461 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.02255, allocations: 1.086 MB / 277.8 MB, free: 15.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.02256, allocations: 0 / 277.8 MB, free: 15.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.02256, allocations: 0 / 277.8 MB, free: 15.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.02258, allocations: 0 / 277.8 MB, free: 15.66 MB / 270.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.00324/0.02582, allocations: 1.198 MB / 279 MB, free: 14.41 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.02586, allocations: 8.922 kB / 279 MB, free: 14.4 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002922/0.02616, allocations: 148.4 kB / 279.1 MB, free: 14.26 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008541/0.02701, allocations: 445.2 kB / 279.5 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.846e-05/0.02706, allocations: 45.69 kB / 279.6 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.02718, allocations: 64.38 kB / 279.7 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.0289, allocations: 0.7728 MB / 280.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.02892, allocations: 8.188 kB / 280.4 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.029, allocations: 32.34 kB / 280.5 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.02903, allocations: 19.94 kB / 280.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/0.03114, allocations: 0.6922 MB / 281.2 MB, free: 12.13 MB / 270.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.004337/0.03548, allocations: 1.828 MB / 283 MB, free: 10.23 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.0371, allocations: 0.5522 MB / 283.6 MB, free: 9.664 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007642/0.03787, allocations: 310.2 kB / 283.9 MB, free: 9.359 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.536e-05/0.03792, allocations: 8.5 kB / 283.9 MB, free: 9.352 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/0.03902, allocations: 0.5419 MB / 284.4 MB, free: 8.754 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.425e-06/0.03902, allocations: 4 kB / 284.4 MB, free: 8.75 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07341/0.1124, allocations: 15.29 MB / 299.7 MB, free: 9.402 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.1126, allocations: 145.5 kB / 299.8 MB, free: 9.227 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000703/0.1133, allocations: 0.5185 MB / 300.4 MB, free: 8.699 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000166/0.1134, allocations: 41.7 kB / 300.4 MB, free: 8.652 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.1138, allocations: 396.7 kB / 300.8 MB, free: 8.258 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003372/0.1141, allocations: 325.2 kB / 301.1 MB, free: 7.938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004116/0.1145, allocations: 186.6 kB / 301.3 MB, free: 7.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.1147, allocations: 386.7 kB / 301.7 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002207/0.1169, allocations: 0.7746 MB / 302.4 MB, free: 6.574 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002387/0.1193, allocations: 1.088 MB / 303.5 MB, free: 5.367 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00428/0.1236, allocations: 1.701 MB / 305.2 MB, free: 3.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1236, allocations: 0 / 305.2 MB, free: 3.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.1328/0.2564, allocations: 5.444 MB / 310.7 MB, free: 48.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.937e-05/0.2565, allocations: 65.34 kB / 310.7 MB, free: 48.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.2565, allocations: 7.094 kB / 310.7 MB, free: 48.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03479/0.2913, allocations: 6.843 MB / 317.6 MB, free: 48.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/0.292, allocations: 150.4 kB / 317.7 MB, free: 48.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006045/0.298, allocations: 3.188 MB / 320.9 MB, free: 46.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.2995, allocations: 181.2 kB / 321.1 MB, free: 46.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.947e-05/0.2996, allocations: 47.64 kB / 321.2 MB, free: 46.33 MB / 286.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.000362/0.3, allocations: 227.9 kB / 321.4 MB, free: 46.15 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/0.3002, allocations: 112.2 kB / 321.5 MB, free: 46.14 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02099/0.3212, allocations: 5.063 MB / 326.5 MB, free: 42.2 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.3212, allocations: 15.98 kB / 326.6 MB, free: 42.19 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3212, allocations: 0 / 326.6 MB, free: 42.19 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.3213, allocations: 3.984 kB / 326.6 MB, free: 42.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.3223, allocations: 0.7548 MB / 327.3 MB, free: 41.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3223, allocations: 3.25 kB / 327.3 MB, free: 41.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004959/0.3228, allocations: 99.81 kB / 327.4 MB, free: 41.33 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03181/0.3546, allocations: 6.785 MB / 334.2 MB, free: 34.54 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001764/0.3548, allocations: 27.97 kB / 334.2 MB, free: 34.51 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004905/0.3597, allocations: 3.079 MB / 337.3 MB, free: 31.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3597, allocations: 0 / 337.3 MB, free: 31.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/0.3818, allocations: 5.987 MB / 343.3 MB, free: 25.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.382, allocations: 76.73 kB / 343.4 MB, free: 25.35 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.3822, allocations: 20 kB / 343.4 MB, free: 25.33 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.3835, allocations: 167.8 kB / 343.6 MB, free: 25.17 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.3837, allocations: 104.8 kB / 343.7 MB, free: 25.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.118e-05/0.3838, allocations: 31.97 kB / 343.7 MB, free: 25.04 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003014/0.3841, allocations: 346.9 kB / 344 MB, free: 24.7 MB / 286.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3841, allocations: 0 / 344 MB, free: 24.7 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006866/0.3848, allocations: 266.5 kB / 344.3 MB, free: 24.44 MB / 286.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.0002484/0.385, allocations: 131.6 kB / 344.4 MB, free: 24.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.005944/0.3909, allocations: 2.16 MB / 346.6 MB, free: 22.11 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3909, allocations: 1.375 kB / 346.6 MB, free: 22.11 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002984/0.3939, allocations: 1.021 MB / 347.6 MB, free: 21.09 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.3946, allocations: 123.2 kB / 347.7 MB, free: 20.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.3977, allocations: 1.764 MB / 349.5 MB, free: 19.21 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.3979, allocations: 357.7 kB / 349.8 MB, free: 18.84 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.3982, allocations: 58.97 kB / 349.9 MB, free: 18.78 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3983, allocations: 44.22 kB / 349.9 MB, free: 18.74 MB / 286.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3983, allocations: 0 / 349.9 MB, free: 18.74 MB / 286.1 MB Notification: Performance of Templates: time 0.02278/0.4211, allocations: 18.86 MB / 368.8 MB, free: 56 kB / 286.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.4850236140191555]