Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.001106/0.001106, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.00122/0.00122, allocations: 165.3 kB / 25.33 MB, free: 9.035 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.032/1.032, allocations: 158.6 MB / 187.2 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5042,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5042,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 251.1 MB, free: 3.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.977e-05/3.157e-05, allocations: 2.312 kB / 251.1 MB, free: 3.598 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004658/0.00469, allocations: 4.622 MB / 255.7 MB, free: 14.95 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002384/0.007073, allocations: 1.256 MB / 256.9 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003721/0.007446, allocations: 8 kB / 256.9 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.007687, allocations: 114.8 kB / 257.1 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003976/0.008085, allocations: 269.5 kB / 257.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006472/0.008732, allocations: 303.4 kB / 257.6 MB, free: 13 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000965/0.009697, allocations: 1.091 MB / 258.7 MB, free: 11.9 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003094/0.01001, allocations: 174.9 kB / 258.9 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007081/0.01071, allocations: 0.5925 MB / 259.5 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.01106, allocations: 355 kB / 259.8 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.809e-05/0.01116, allocations: 88 kB / 259.9 MB, free: 10.68 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.01131, allocations: 123.8 kB / 260 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.01143, allocations: 203.2 kB / 260.2 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.01164, allocations: 303.3 kB / 260.5 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005953/0.01224, allocations: 0.7046 MB / 261.2 MB, free: 9.359 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.01224, allocations: 0 / 261.2 MB, free: 9.359 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01224, allocations: 0 / 261.2 MB, free: 9.359 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.01225, allocations: 0 / 261.2 MB, free: 9.359 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.001384/0.01363, allocations: 1.216 MB / 262.4 MB, free: 8.09 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.01368, allocations: 15.98 kB / 262.5 MB, free: 8.074 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.01383, allocations: 144.4 kB / 262.6 MB, free: 7.934 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.0143, allocations: 406 kB / 263 MB, free: 7.512 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.01433, allocations: 49.69 kB / 263 MB, free: 7.465 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.557e-05/0.01442, allocations: 64.36 kB / 263.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.01513, allocations: 0.586 MB / 263.7 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.01514, allocations: 192 / 263.7 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.355e-05/0.01519, allocations: 32.38 kB / 263.7 MB, free: 6.746 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.0152, allocations: 19.94 kB / 263.7 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.01569, allocations: 311.6 kB / 264 MB, free: 6.422 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.01783, allocations: 1.722 MB / 265.8 MB, free: 4.625 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005169/0.01835, allocations: 336.6 kB / 266.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.01856, allocations: 157 kB / 266.3 MB, free: 4.129 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.0186, allocations: 12.5 kB / 266.3 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003902/0.01899, allocations: 428 kB / 266.7 MB, free: 3.637 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 1.683e-06/0.01899, allocations: 0 / 266.7 MB, free: 3.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.03198/0.05097, allocations: 9.787 MB / 276.5 MB, free: 9.789 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.05108, allocations: 141.5 kB / 276.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004928/0.05158, allocations: 0.5102 MB / 277.1 MB, free: 9.094 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.05171, allocations: 41.7 kB / 277.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002618/0.05197, allocations: 419.5 kB / 277.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003161/0.05229, allocations: 325.2 kB / 277.9 MB, free: 8.309 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.05257, allocations: 180.2 kB / 278.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002411/0.05281, allocations: 0.5547 MB / 278.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006165/0.05343, allocations: 349.2 kB / 279 MB, free: 7.203 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006796/0.05411, allocations: 0.6983 MB / 279.7 MB, free: 6.367 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.05519, allocations: 0.9412 MB / 280.6 MB, free: 5.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.0552, allocations: 4 kB / 280.6 MB, free: 5.316 MB / 266.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.008489/0.06369, allocations: 3.487 MB / 284.1 MB, free: 1.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.132e-05/0.06377, allocations: 67.39 kB / 284.2 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.06378, allocations: 4 kB / 284.2 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01464/0.07842, allocations: 5.187 MB / 289.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.07876, allocations: 115.8 kB / 289.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003074/0.08184, allocations: 2.653 MB / 292.1 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007273/0.08256, allocations: 111.9 kB / 292.2 MB, free: 9.555 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.896e-05/0.08264, allocations: 47.97 kB / 292.3 MB, free: 9.508 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0004612/0.0831, allocations: 212.4 kB / 292.5 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.08327, allocations: 111.5 kB / 292.6 MB, free: 9.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007699/0.09097, allocations: 3.173 MB / 295.8 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.09099, allocations: 11.94 kB / 295.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.091, allocations: 0 / 295.8 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.09101, allocations: 3.984 kB / 295.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000862/0.09187, allocations: 0.6751 MB / 296.4 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.09188, allocations: 0 / 296.4 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.09207, allocations: 63.88 kB / 296.5 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01382/0.1059, allocations: 5.14 MB / 301.7 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.106, allocations: 23.98 kB / 301.7 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1509/0.2569, allocations: 2.58 MB / 304.3 MB, free: 55.49 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2569, allocations: 0 / 304.3 MB, free: 55.49 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009213/0.2661, allocations: 3.472 MB / 307.7 MB, free: 55.37 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.2663, allocations: 66.38 kB / 307.8 MB, free: 55.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.2664, allocations: 21.12 kB / 307.8 MB, free: 55.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.2669, allocations: 109.2 kB / 307.9 MB, free: 55.36 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.2671, allocations: 91.95 kB / 308 MB, free: 55.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.845e-05/0.2671, allocations: 31.89 kB / 308 MB, free: 55.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002438/0.2674, allocations: 333.4 kB / 308.4 MB, free: 55.23 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2674, allocations: 0 / 308.4 MB, free: 55.23 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006388/0.268, allocations: 255.7 kB / 308.6 MB, free: 55.23 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): 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.0002451/0.2683, allocations: 129.6 kB / 308.7 MB, free: 55.14 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.2707, allocations: 1.308 MB / 310 MB, free: 54.9 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.2707, allocations: 4.656 kB / 310.1 MB, free: 54.9 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.2719, allocations: 0.6609 MB / 310.7 MB, free: 54.86 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000526/0.2725, allocations: 150 kB / 310.9 MB, free: 54.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.2749, allocations: 1.438 MB / 312.3 MB, free: 54.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.173e-05/0.2749, allocations: 156 kB / 312.5 MB, free: 54.12 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001544/0.2751, allocations: 53.69 kB / 312.5 MB, free: 54.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.669e-05/0.2752, allocations: 43.42 kB / 312.5 MB, free: 54.11 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2752, allocations: 0 / 312.5 MB, free: 54.11 MB / 282.7 MB Notification: Performance of Templates: time 0.01768/0.2929, allocations: 18.93 MB / 331.5 MB, free: 37.95 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.848563921172172]