Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001938/0.001938, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002675/0.002675, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.735/1.735, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3371, allocations: 50.55 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003891/0.3411, allocations: 2.141 MB / 411.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.3422, allocations: 0.6195 MB / 412 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.3423, allocations: 0 / 412 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.3425, allocations: 27.78 kB / 412 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.269e-05/0.3426, allocations: 43.58 kB / 412.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.3429, allocations: 51.88 kB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.3431, allocations: 167.2 kB / 412.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.3433, allocations: 53.45 kB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.3434, allocations: 67.77 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.3436, allocations: 67.7 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.3436, allocations: 12 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.241e-05/0.3437, allocations: 28 kB / 412.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.962e-05/0.3437, allocations: 23.86 kB / 412.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.713e-05/0.3438, allocations: 79.59 kB / 412.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.3441, allocations: 163.2 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3441, allocations: 0 / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3441, allocations: 0 / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.3442, allocations: 0 / 412.8 MB, free: 14.02 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.0006725/0.3448, allocations: 454.9 kB / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3449, allocations: 8.031 kB / 413.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.3451, allocations: 28.83 kB / 413.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.3454, allocations: 216.1 kB / 413.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3454, allocations: 8.609 kB / 413.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.3455, allocations: 12.38 kB / 413.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.3457, allocations: 123.8 kB / 413.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.3457, allocations: 4 kB / 413.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.3458, allocations: 4 kB / 413.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3458, allocations: 7.984 kB / 413.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.346, allocations: 72.67 kB / 413.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009302/0.3469, allocations: 0.6019 MB / 414.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.3472, allocations: 86.62 kB / 414.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.3473, allocations: 32.97 kB / 414.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.3473, allocations: 0 / 414.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.3474, allocations: 34.56 kB / 414.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.31e-07/0.3474, allocations: 0 / 414.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007583/0.3481, allocations: 255.5 kB / 414.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.3482, allocations: 55.34 kB / 414.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.3483, allocations: 157.1 kB / 414.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.3484, allocations: 37.64 kB / 415 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.3484, allocations: 128.1 kB / 415.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.3485, allocations: 23.78 kB / 415.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.3485, allocations: 21.67 kB / 415.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3486, allocations: 322.8 kB / 415.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.277e-05/0.3487, allocations: 23.98 kB / 415.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.107e-05/0.3488, allocations: 42.56 kB / 415.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.3489, allocations: 74.48 kB / 415.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3489, allocations: 0 / 415.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002663/0.3492, allocations: 142.3 kB / 415.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3492, allocations: 8.062 kB / 415.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3492, allocations: 0 / 415.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.3494, allocations: 36.84 kB / 415.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.544e-05/0.3495, allocations: 11.92 kB / 415.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.3511, allocations: 1.682 MB / 417.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.828e-05/0.3512, allocations: 19.89 kB / 417.5 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3512, allocations: 0 / 417.5 MB, free: 8.895 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.0001102/0.3513, allocations: 133.7 kB / 417.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.3513, allocations: 7.953 kB / 417.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.264e-05/0.3514, allocations: 12.72 kB / 417.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.3514, allocations: 0 / 417.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.3514, allocations: 0 / 417.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3514, allocations: 0 / 417.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.3516, allocations: 217.5 kB / 417.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3516, allocations: 4 kB / 417.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.3517, allocations: 3.984 kB / 417.8 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001194/0.3518, allocations: 36.84 kB / 417.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.3518, allocations: 0 / 417.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.3531, allocations: 1.682 MB / 419.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3531, allocations: 0 / 419.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.3534, allocations: 220.3 kB / 419.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.3535, allocations: 85.06 kB / 419.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.3535, allocations: 0 / 419.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.463e-05/0.3536, allocations: 4 kB / 419.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.3537, allocations: 15.92 kB / 419.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.3537, allocations: 0 / 419.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.294e-05/0.3538, allocations: 120.3 kB / 420 MB, free: 6.137 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.3538, allocations: 4 kB / 420 MB, free: 6.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003423/0.3541, allocations: 43.83 kB / 420 MB, free: 6.09 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.000128/0.3542, allocations: 95.25 kB / 420.1 MB, free: 5.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004023/0.3547, allocations: 190.6 kB / 420.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3547, allocations: 0 / 420.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.3549, allocations: 158.7 kB / 420.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.3552, allocations: 15.98 kB / 420.5 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005427/0.3557, allocations: 279.7 kB / 420.8 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.356, allocations: 0.7157 MB / 421.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.479e-05/0.356, allocations: 8.469 kB / 421.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.73e-05/0.3561, allocations: 15.42 kB / 421.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3561, allocations: 0 / 421.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of Templates: time 0.004201/0.3603, allocations: 1.52 MB / 423 MB, free: 3.027 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches