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.002173/0.002173, allocations: 95.86 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002563/0.002563, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 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.607/1.607, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 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 1.322e-06/1.322e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.117e-05/3.249e-05, allocations: 10.25 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007096/0.007129, allocations: 4.795 MB / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.009919, allocations: 1.244 MB / 273.4 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.01025, allocations: 19.88 kB / 273.4 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.01057, allocations: 118.7 kB / 273.5 MB, free: 500 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005409/0.01111, allocations: 281.4 kB / 273.8 MB, free: 216 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/0.01184, allocations: 319.3 kB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.01312, allocations: 1.134 MB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003705/0.01349, allocations: 175 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008947/0.01439, allocations: 0.612 MB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008246/0.01521, allocations: 367 kB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.01537, allocations: 95.98 kB / 276.5 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.01563, allocations: 115.9 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.01585, allocations: 207.2 kB / 276.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.01625, allocations: 323.2 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001351/0.0176, allocations: 1.094 MB / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.01761, allocations: 0 / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01761, allocations: 3.938 kB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.01762, allocations: 0 / 278.2 MB, free: 11.77 MB / 266.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.002849/0.02047, allocations: 1.313 MB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.02051, allocations: 8.922 kB / 279.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002697/0.02078, allocations: 148.4 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007755/0.02155, allocations: 444.1 kB / 280.1 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.02161, allocations: 49.69 kB / 280.2 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.02173, allocations: 64.38 kB / 280.2 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.02314, allocations: 0.7338 MB / 281 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.02316, allocations: 192 / 281 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.071e-05/0.02323, allocations: 28.36 kB / 281 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.451e-05/0.02326, allocations: 19.94 kB / 281 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.02476, allocations: 0.6142 MB / 281.6 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/0.02919, allocations: 2.02 MB / 283.6 MB, free: 6.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.03048, allocations: 0.5015 MB / 284.1 MB, free: 5.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006376/0.03112, allocations: 281 kB / 284.4 MB, free: 5.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-05/0.03118, allocations: 12.5 kB / 284.4 MB, free: 5.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001002/0.03218, allocations: 0.5429 MB / 285 MB, free: 4.742 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.823e-06/0.03219, allocations: 0 / 285 MB, free: 4.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.186/0.2182, allocations: 11.82 MB / 296.8 MB, free: 31.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.813e-05/0.2182, allocations: 144.6 kB / 296.9 MB, free: 30.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006477/0.2189, allocations: 0.6601 MB / 297.6 MB, free: 30.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.219, allocations: 47.2 kB / 297.6 MB, free: 30.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.2193, allocations: 471.7 kB / 298.1 MB, free: 30.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.2195, allocations: 354.8 kB / 298.4 MB, free: 29.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003598/0.2198, allocations: 213.2 kB / 298.6 MB, free: 29.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.22, allocations: 0.5934 MB / 299.2 MB, free: 29.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/0.2214, allocations: 0.6875 MB / 299.9 MB, free: 29.03 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.2229, allocations: 1.105 MB / 301 MB, free: 28.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.2256, allocations: 1.659 MB / 302.7 MB, free: 27.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.2256, allocations: 0 / 302.7 MB, free: 27.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0183/0.2439, allocations: 4.47 MB / 307.2 MB, free: 23.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.73e-05/0.244, allocations: 63.41 kB / 307.2 MB, free: 23.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.244, allocations: 11.94 kB / 307.2 MB, free: 23.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02992/0.2739, allocations: 5.644 MB / 312.9 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005363/0.2744, allocations: 119.8 kB / 313 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005393/0.2798, allocations: 3.547 MB / 316.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.2813, allocations: 115.9 kB / 316.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.2814, allocations: 51.91 kB / 316.7 MB, free: 13.96 MB / 266.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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004078/0.2818, allocations: 276.3 kB / 317 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.282, allocations: 123.4 kB / 317.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/0.2993, allocations: 4.069 MB / 321.2 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.2993, allocations: 8 kB / 321.2 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.2993, allocations: 7.297 kB / 321.2 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.49e-05/0.2993, allocations: 7.984 kB / 321.2 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.301, allocations: 0.8538 MB / 322 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.301, allocations: 4 kB / 322 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.3014, allocations: 55.94 kB / 322.1 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02966/0.331, allocations: 5.605 MB / 327.7 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001974/0.3312, allocations: 27.97 kB / 327.7 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005178/0.3364, allocations: 3.465 MB / 331.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3364, allocations: 3.938 kB / 331.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02261/0.359, allocations: 4.912 MB / 336.1 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000336/0.3594, allocations: 71.47 kB / 336.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.3596, allocations: 16 kB / 336.2 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.3607, allocations: 111.9 kB / 336.3 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.361, allocations: 108.8 kB / 336.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.3611, allocations: 35.97 kB / 336.4 MB, free: 10.08 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005556/0.3617, allocations: 414.8 kB / 336.9 MB, free: 9.672 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3617, allocations: 0 / 336.9 MB, free: 9.672 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008808/0.3626, allocations: 256 kB / 337.1 MB, free: 9.422 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.0003117/0.3629, allocations: 135.1 kB / 337.2 MB, free: 9.281 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006494/0.3694, allocations: 2.01 MB / 339.2 MB, free: 7.234 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.3694, allocations: 8.062 kB / 339.3 MB, free: 7.227 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003369/0.3728, allocations: 0.993 MB / 340.2 MB, free: 6.227 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.3736, allocations: 157.1 kB / 340.4 MB, free: 6.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004099/0.3777, allocations: 1.725 MB / 342.1 MB, free: 4.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.3781, allocations: 357.7 kB / 342.5 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.3783, allocations: 56.67 kB / 342.5 MB, free: 3.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.3785, allocations: 36.5 kB / 342.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3785, allocations: 0 / 342.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of Templates: time 0.03485/0.4133, allocations: 18.99 MB / 361.6 MB, free: 1.047 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] 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.681779231061228]