Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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.001091/0.001091, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001265/0.001265, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 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.064/1.064, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.215e-06/2.215e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.778e-05/3e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003251/0.003281, allocations: 2.215 MB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.004341, allocations: 0.5997 MB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.004458, allocations: 4 kB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.004605, allocations: 23.78 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.653e-05/0.004691, allocations: 51.5 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.004993, allocations: 51.88 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.005203, allocations: 167.1 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.005356, allocations: 33.67 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.005558, allocations: 107.7 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.005665, allocations: 51.81 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.005693, allocations: 12 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.369e-05/0.005767, allocations: 24 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.005793, allocations: 31.89 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.516e-05/0.005848, allocations: 47.86 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.006053, allocations: 107.6 kB / 276.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.006057, allocations: 3.984 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.006058, allocations: 4 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.006063, allocations: 0 / 276.5 MB, free: 14 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005154/0.006579, allocations: 472.2 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.006618, allocations: 8.031 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.006792, allocations: 36.78 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.006992, allocations: 158.9 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.007007, allocations: 12.55 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.007026, allocations: 12.38 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.007242, allocations: 130.5 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.007255, allocations: 192 / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.007272, allocations: 8.375 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.007284, allocations: 7.938 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.65e-05/0.007361, allocations: 40.61 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006559/0.008017, allocations: 494.6 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.008245, allocations: 75.09 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.723e-05/0.008282, allocations: 19.75 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.008303, allocations: 4 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.008332, allocations: 45.33 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.894e-06/0.008333, allocations: 0 / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004161/0.00875, allocations: 145.3 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.008778, allocations: 55.41 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.008896, allocations: 209.2 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.008909, allocations: 25.7 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.691e-05/0.008986, allocations: 174.9 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.009005, allocations: 23.8 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.009043, allocations: 23.38 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.00916, allocations: 0.4923 MB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.955e-05/0.00919, allocations: 11.98 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.773e-05/0.009227, allocations: 35.06 kB / 279.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.398e-05/0.009291, allocations: 54.98 kB / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.009294, allocations: 8 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001633/0.009458, allocations: 113.1 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.009472, allocations: 4 kB / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.009479, allocations: 4 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.009657, allocations: 31.67 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.737e-05/0.009694, allocations: 7.984 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.011, allocations: 2.094 MB / 281.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.003e-05/0.01104, allocations: 4 kB / 281.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.01105, allocations: 4 kB / 281.5 MB, free: 8.633 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.157e-05/0.01115, allocations: 168.5 kB / 281.7 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.01117, allocations: 7.953 kB / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.58e-05/0.01119, allocations: 12.78 kB / 281.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.01119, allocations: 7.875 kB / 281.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.01119, allocations: 3.984 kB / 281.7 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.01119, allocations: 4.031 kB / 281.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.01132, allocations: 156.5 kB / 281.8 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01133, allocations: 0 / 281.8 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.852e-05/0.01134, allocations: 7.984 kB / 281.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.777e-05/0.01144, allocations: 35.67 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.01145, allocations: 0 / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.01258, allocations: 2.083 MB / 284 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01258, allocations: 0 / 284 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001768/0.01276, allocations: 243.4 kB / 284.2 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.268e-05/0.01277, allocations: 19.92 kB / 284.2 MB, free: 5.699 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-06/0.01278, allocations: 3.938 kB / 284.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.089e-05/0.01283, allocations: 4 kB / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.01287, allocations: 7.984 kB / 284.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.01288, allocations: 4 kB / 284.3 MB, free: 5.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.034e-05/0.01295, allocations: 151.2 kB / 284.4 MB, free: 5.531 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01295, allocations: 0 / 284.4 MB, free: 5.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002373/0.01318, allocations: 35.95 kB / 284.4 MB, free: 5.496 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 8.887e-05/0.01327, allocations: 99.25 kB / 284.5 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.01357, allocations: 228.3 kB / 284.8 MB, free: 5.145 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.01357, allocations: 0 / 284.8 MB, free: 5.145 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.0137, allocations: 213.4 kB / 285 MB, free: 4.914 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.01392, allocations: 8 kB / 285 MB, free: 4.906 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.01465, allocations: 290.4 kB / 285.3 MB, free: 4.594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.034e-05/0.0147, allocations: 67.33 kB / 285.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.513e-05/0.01474, allocations: 4.5 kB / 285.3 MB, free: 4.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.628e-05/0.01477, allocations: 16.5 kB / 285.3 MB, free: 4.484 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01478, allocations: 0 / 285.3 MB, free: 4.484 MB / 266.7 MB Notification: Performance of Templates: time 0.003858/0.01863, allocations: 1.512 MB / 286.9 MB, free: 2.992 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.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: 2.9709724220447242]