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.001789/0.001789, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002446/0.002446, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 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.498/1.498, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 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.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 0.001766/0.001766, allocations: 43.92 kB / 370.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2511, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003986/0.2551, allocations: 2.177 MB / 425.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.2562, allocations: 0.5455 MB / 425.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.2564, allocations: 4 kB / 425.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.2565, allocations: 15.8 kB / 425.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.2566, allocations: 51.61 kB / 425.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.2568, allocations: 35.89 kB / 425.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.2571, allocations: 159.2 kB / 426.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.2572, allocations: 41.59 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2574, allocations: 71.73 kB / 426.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.2575, allocations: 71.69 kB / 426.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.2575, allocations: 12 kB / 426.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.389e-05/0.2576, allocations: 16 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.484e-05/0.2576, allocations: 23.92 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.854e-05/0.2577, allocations: 79.59 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002612/0.258, allocations: 160.6 kB / 426.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.258, allocations: 0 / 426.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.258, allocations: 0 / 426.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.258, allocations: 0 / 426.6 MB, free: 11.23 MB / 334.1 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.0006347/0.2586, allocations: 373.8 kB / 426.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.2587, allocations: 12.03 kB / 426.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.07e-05/0.2587, allocations: 12.89 kB / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.259, allocations: 146.3 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.259, allocations: 12.55 kB / 427.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.259, allocations: 12.38 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.2593, allocations: 121 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.2593, allocations: 7.984 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.2593, allocations: 7.984 kB / 427.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2593, allocations: 4 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.2595, allocations: 72.67 kB / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008795/0.2604, allocations: 0.5658 MB / 427.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.2607, allocations: 82.62 kB / 428 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.642e-05/0.2608, allocations: 28.97 kB / 428 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.2608, allocations: 0 / 428 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.2608, allocations: 46.44 kB / 428 MB, free: 9.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.2608, allocations: 0 / 428 MB, free: 9.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006959/0.2615, allocations: 178.3 kB / 428.2 MB, free: 9.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.2616, allocations: 55.34 kB / 428.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.2617, allocations: 144.2 kB / 428.4 MB, free: 9.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.2617, allocations: 29.7 kB / 428.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.2618, allocations: 132.1 kB / 428.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.2618, allocations: 19.86 kB / 428.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.2619, allocations: 21.66 kB / 428.6 MB, free: 8.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.262, allocations: 322.8 kB / 428.9 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.592e-05/0.2621, allocations: 23.98 kB / 429 MB, free: 8.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.062e-05/0.2622, allocations: 42.56 kB / 429 MB, free: 8.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.2623, allocations: 70.5 kB / 429.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2623, allocations: 0 / 429.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000306/0.2626, allocations: 142.3 kB / 429.2 MB, free: 8.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2627, allocations: 8 kB / 429.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.2627, allocations: 0 / 429.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.2629, allocations: 28.84 kB / 429.2 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.042e-05/0.2629, allocations: 15.92 kB / 429.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.2645, allocations: 1.59 MB / 430.8 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.878e-05/0.2646, allocations: 4.062 kB / 430.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-06/0.2646, allocations: 4 kB / 430.9 MB, free: 6.578 MB / 334.1 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 0.0001086/0.2647, allocations: 129.7 kB / 431 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.2648, allocations: 11.89 kB / 431 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.249e-05/0.2648, allocations: 12.7 kB / 431 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2648, allocations: 4 kB / 431 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.92e-07/0.2648, allocations: 0 / 431 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.2648, allocations: 0 / 431 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.265, allocations: 192.6 kB / 431.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.265, allocations: 0 / 431.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-05/0.2651, allocations: 8.125 kB / 431.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.2652, allocations: 36.83 kB / 431.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2652, allocations: 7.938 kB / 431.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001463/0.2667, allocations: 1.575 MB / 432.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2667, allocations: 0 / 432.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.267, allocations: 216.3 kB / 433 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.733e-05/0.267, allocations: 11.83 kB / 433 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.267, allocations: 7.984 kB / 433.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.2672, allocations: 4 kB / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.2672, allocations: 7.984 kB / 433.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.2672, allocations: 7.938 kB / 433.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.829e-05/0.2673, allocations: 115.2 kB / 433.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2673, allocations: 0 / 433.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003654/0.2677, allocations: 36 kB / 433.2 MB, free: 4.02 MB / 334.1 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 0.0001046/0.2678, allocations: 91.25 kB / 433.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004378/0.2682, allocations: 190.6 kB / 433.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.2682, allocations: 4.125 kB / 433.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.2684, allocations: 154.6 kB / 433.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.2687, allocations: 16.28 kB / 433.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005777/0.2693, allocations: 316.5 kB / 434 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.2696, allocations: 0.708 MB / 434.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.561e-05/0.2697, allocations: 448 / 434.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.2697, allocations: 11.44 kB / 434.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2697, allocations: 7.938 kB / 434.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of Templates: time 0.004892/0.2746, allocations: 1.589 MB / 436.3 MB, free: 0.875 MB / 334.1 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: 4.58534084353596]