Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.0008262/0.0008262, allocations: 84 kB / 21.43 MB, free: 3.129 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.002959/0.002959, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 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 0.7956/0.7956, allocations: 173.4 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 3.938 kB / 319.7 MB, free: 5.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.029e-05, allocations: 6.281 kB / 319.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002041/0.002061, allocations: 2.061 MB / 321.7 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005944/0.002656, allocations: 0.526 MB / 322.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.408e-05/0.00273, allocations: 4 kB / 322.3 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.002834, allocations: 19.73 kB / 322.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.772e-05/0.002892, allocations: 51.56 kB / 322.3 MB, free: 3.039 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.003081, allocations: 43.88 kB / 322.4 MB, free: 2.996 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.003219, allocations: 163.1 kB / 322.5 MB, free: 2.836 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.003348, allocations: 41.58 kB / 322.6 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.00345, allocations: 91.8 kB / 322.7 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.941e-05/0.00352, allocations: 43.89 kB / 322.7 MB, free: 2.656 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.003538, allocations: 12 kB / 322.7 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.979e-05/0.003588, allocations: 23.92 kB / 322.8 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.325e-05/0.003611, allocations: 27.91 kB / 322.8 MB, free: 2.594 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.689e-05/0.003648, allocations: 47.86 kB / 322.8 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.003817, allocations: 163.5 kB / 323 MB, free: 2.387 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.764e-06/0.003819, allocations: 4 kB / 323 MB, free: 2.383 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.003819, allocations: 0 / 323 MB, free: 2.383 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.003823, allocations: 0 / 323 MB, free: 2.383 MB / 282.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.0004247/0.004247, allocations: 369.9 kB / 323.4 MB, free: 1.988 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.004285, allocations: 8.922 kB / 323.4 MB, free: 1.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.016e-05/0.004355, allocations: 20.78 kB / 323.4 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.004527, allocations: 145.6 kB / 323.5 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.004538, allocations: 8.609 kB / 323.5 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.004552, allocations: 16.38 kB / 323.6 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.004731, allocations: 149.7 kB / 323.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.004739, allocations: 192 / 323.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.004751, allocations: 4.375 kB / 323.7 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.004757, allocations: 7.938 kB / 323.7 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.004865, allocations: 80.66 kB / 323.8 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004988/0.005364, allocations: 435.4 kB / 324.2 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.005569, allocations: 90.56 kB / 324.3 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.259e-05/0.005611, allocations: 28.97 kB / 324.3 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.005623, allocations: 0 / 324.3 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.005642, allocations: 42.5 kB / 324.4 MB, free: 0.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 7.01e-07/0.005643, allocations: 3.938 kB / 324.4 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003876/0.006031, allocations: 174.3 kB / 324.5 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.006056, allocations: 51.41 kB / 324.6 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.425e-05/0.00614, allocations: 144 kB / 324.7 MB, free: 492 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.006152, allocations: 29.7 kB / 324.8 MB, free: 456 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.006215, allocations: 124.1 kB / 324.9 MB, free: 324 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.006229, allocations: 23.84 kB / 324.9 MB, free: 300 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.006257, allocations: 17.72 kB / 324.9 MB, free: 276 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.006353, allocations: 330.8 kB / 325.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.824e-05/0.006391, allocations: 20 kB / 325.3 MB, free: 15.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.6e-05/0.006437, allocations: 50.48 kB / 325.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.715e-05/0.006514, allocations: 62.56 kB / 325.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.006516, allocations: 0 / 325.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001572/0.006673, allocations: 134.3 kB / 325.5 MB, free: 15.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.006686, allocations: 7.938 kB / 325.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.00669, allocations: 80 / 325.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.006818, allocations: 44.83 kB / 325.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.119e-05/0.00685, allocations: 8 kB / 325.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009594/0.007809, allocations: 1.567 MB / 327.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.762e-05/0.007847, allocations: 8 kB / 327.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.007854, allocations: 192 / 327.1 MB, free: 13.91 MB / 298.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 7.287e-05/0.007927, allocations: 133.7 kB / 327.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.83e-05/0.007946, allocations: 15.84 kB / 327.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.158e-05/0.007957, allocations: 12.78 kB / 327.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.62e-07/0.007958, allocations: 0 / 327.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.007959, allocations: 0 / 327.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.007963, allocations: 8 kB / 327.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.008069, allocations: 141.3 kB / 327.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.00807, allocations: 0 / 327.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.448e-05/0.008084, allocations: 4 kB / 327.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.294e-05/0.008167, allocations: 36.83 kB / 327.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.008174, allocations: 0 / 327.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007435/0.008917, allocations: 1.544 MB / 329 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.008919, allocations: 3.984 kB / 329 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.009082, allocations: 216.2 kB / 329.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.096e-05/0.009093, allocations: 15.89 kB / 329.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.741e-06/0.009098, allocations: 3.938 kB / 329.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.31e-05/0.009152, allocations: 7.984 kB / 329.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.009179, allocations: 7.938 kB / 329.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.009185, allocations: 7.984 kB / 329.3 MB, free: 11.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.707e-05/0.009232, allocations: 114.6 kB / 329.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009232, allocations: 0 / 329.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002155/0.009448, allocations: 39.95 kB / 329.4 MB, free: 11.45 MB / 298.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 6.779e-05/0.009515, allocations: 94.44 kB / 329.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002433/0.009759, allocations: 186.6 kB / 329.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.009761, allocations: 4 kB / 329.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.938e-05/0.00986, allocations: 158.7 kB / 329.9 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.01003, allocations: 14.66 kB / 329.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003559/0.01039, allocations: 291.5 kB / 330.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.66e-05/0.01044, allocations: 98.28 kB / 330.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.01046, allocations: 8.5 kB / 330.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.01046, allocations: 0 / 330.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of Templates: time 0.002361/0.01282, allocations: 1.971 MB / 332.3 MB, free: 8.562 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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: 3.8772704554721713]