Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_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.001051/0.001051, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001511/0.002562, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001047/0.001047, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001408/0.002454, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9748/0.9748, allocations: 177.5 MB / 190 MB, free: 4.758 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08624/1.061, allocations: 53.87 MB / 243.9 MB, free: 14.81 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.762e-05/1.874e-05, allocations: 5.125 kB / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007859/0.007878, allocations: 4.867 MB / 250.1 MB, free: 8.605 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005332/0.01321, allocations: 1.326 MB / 251.4 MB, free: 7.27 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003257/0.01354, allocations: 15.94 kB / 251.4 MB, free: 7.254 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.01376, allocations: 118.7 kB / 251.6 MB, free: 7.137 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000416/0.01418, allocations: 285.3 kB / 251.8 MB, free: 6.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005297/0.01471, allocations: 315.3 kB / 252.2 MB, free: 6.547 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00393/0.01864, allocations: 1.114 MB / 253.3 MB, free: 5.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002775/0.01892, allocations: 196.9 kB / 253.5 MB, free: 5.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007575/0.01968, allocations: 0.6928 MB / 254.2 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.02011, allocations: 367 kB / 254.5 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.02022, allocations: 92 kB / 254.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.02043, allocations: 115.9 kB / 254.7 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.02055, allocations: 143.5 kB / 254.9 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.02079, allocations: 255.5 kB / 255.1 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003713/0.02451, allocations: 0.6384 MB / 255.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.519e-05/0.02452, allocations: 0 / 255.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.02452, allocations: 4 kB / 255.7 MB, free: 2.926 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.02454, allocations: 0 / 255.7 MB, free: 2.926 MB / 250.7 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.001644/0.02618, allocations: 1.333 MB / 257.1 MB, free: 1.551 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.02622, allocations: 8.625 kB / 257.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.02637, allocations: 116.8 kB / 257.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004582/0.02683, allocations: 341.5 kB / 257.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.02687, allocations: 49.69 kB / 257.6 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.113e-05/0.02696, allocations: 64.38 kB / 257.6 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003683/0.03065, allocations: 0.5703 MB / 258.2 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.03066, allocations: 8.172 kB / 258.2 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.641e-05/0.03071, allocations: 24.38 kB / 258.2 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.03072, allocations: 19.94 kB / 258.3 MB, free: 304 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003505/0.03107, allocations: 218.3 kB / 258.5 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00358/0.03465, allocations: 1.465 MB / 259.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006671/0.03532, allocations: 256.4 kB / 260.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.03545, allocations: 119 kB / 260.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.03549, allocations: 16.38 kB / 260.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003228/0.03581, allocations: 406.9 kB / 260.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.644e-06/0.03581, allocations: 0 / 260.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02415/0.05997, allocations: 11.05 MB / 271.8 MB, free: 2.594 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.06002, allocations: 72.39 kB / 271.8 MB, free: 2.512 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/0.06037, allocations: 478.9 kB / 272.3 MB, free: 2.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.06052, allocations: 49.69 kB / 272.4 MB, free: 1.977 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.06071, allocations: 329.9 kB / 272.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.0609, allocations: 329.1 kB / 273 MB, free: 1.324 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.06218, allocations: 190.5 kB / 273.2 MB, free: 1.133 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.06233, allocations: 390.6 kB / 273.6 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004618/0.0628, allocations: 245.6 kB / 273.8 MB, free: 500 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000639/0.06344, allocations: 0.5458 MB / 274.4 MB, free: 15.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.06458, allocations: 0.7791 MB / 275.1 MB, free: 14.95 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.06458, allocations: 0 / 275.1 MB, free: 14.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01118/0.07576, allocations: 3.109 MB / 278.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.298e-05/0.07584, allocations: 67.41 kB / 278.3 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.07586, allocations: 4 kB / 278.3 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01923/0.09509, allocations: 5.162 MB / 283.5 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.0956, allocations: 138.7 kB / 283.6 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009092/0.1047, allocations: 5.47 MB / 289.1 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006786/0.1054, allocations: 119.9 kB / 289.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.1054, allocations: 39.91 kB / 289.2 MB, free: 0.6602 MB / 282.7 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): 1 system {(5,32,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002301/0.1057, allocations: 165.7 kB / 289.4 MB, free: 500 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.1058, allocations: 79.92 kB / 289.5 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1164/0.2222, allocations: 2.832 MB / 292.3 MB, free: 32.63 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.2222, allocations: 9.406 kB / 292.3 MB, free: 32.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.2222, allocations: 5.438 kB / 292.3 MB, free: 32.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.135e-05/0.2223, allocations: 10.5 kB / 292.3 MB, free: 32.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008319/0.2231, allocations: 0.5148 MB / 292.8 MB, free: 32.56 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.2231, allocations: 0 / 292.8 MB, free: 32.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/0.2234, allocations: 64.22 kB / 292.9 MB, free: 32.56 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.847e-05/0.2235, allocations: 69.47 kB / 293 MB, free: 32.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01241/0.2359, allocations: 5.106 MB / 298.1 MB, free: 32.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.236, allocations: 25.98 kB / 298.1 MB, free: 32.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007526/0.2435, allocations: 5.298 MB / 303.4 MB, free: 30.58 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.2435, allocations: 0 / 303.4 MB, free: 30.58 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006157/0.2497, allocations: 3.048 MB / 306.5 MB, free: 29.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.2498, allocations: 25.25 kB / 306.5 MB, free: 29.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.2503, allocations: 115.6 kB / 306.6 MB, free: 29.44 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/0.2506, allocations: 108.6 kB / 306.7 MB, free: 29.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.2506, allocations: 25.88 kB / 306.7 MB, free: 29.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002124/0.2508, allocations: 200.4 kB / 306.9 MB, free: 29.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2508, allocations: 0 / 306.9 MB, free: 29.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009189/0.2517, allocations: 365.7 kB / 307.3 MB, free: 29.11 MB / 282.7 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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000223/0.252, allocations: 110 kB / 307.4 MB, free: 29.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.2537, allocations: 1.386 MB / 308.8 MB, free: 27.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-05/0.2538, allocations: 21.48 kB / 308.8 MB, free: 27.69 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009901/0.2548, allocations: 0.8401 MB / 309.6 MB, free: 26.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006211/0.2554, allocations: 1.271 MB / 310.9 MB, free: 25.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/0.2598, allocations: 1.478 MB / 312.4 MB, free: 24.15 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.26, allocations: 182 kB / 312.6 MB, free: 23.95 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001896/0.2602, allocations: 57.38 kB / 312.6 MB, free: 23.9 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.2604, allocations: 170.6 kB / 312.8 MB, free: 23.74 MB / 282.7 MB Notification: Performance of SimCode: time 1.623e-06/0.2604, allocations: 0 / 312.8 MB, free: 23.74 MB / 282.7 MB Notification: Performance of Templates: time 0.02539/0.2858, allocations: 29.61 MB / 342.4 MB, free: 10.82 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.403785042464733]