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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 104 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 191.5 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 58.23 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09392, allocations: 49.43 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003776/0.09774, allocations: 2.119 MB / 352.8 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.09882, allocations: 0.557 MB / 353.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.09899, allocations: 4 kB / 353.4 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.09916, allocations: 19.78 kB / 353.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.09929, allocations: 47.56 kB / 353.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.09953, allocations: 39.89 kB / 353.5 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.09974, allocations: 159.3 kB / 353.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.09992, allocations: 61.44 kB / 353.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.1001, allocations: 63.72 kB / 353.8 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.1002, allocations: 63.7 kB / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.1002, allocations: 12 kB / 353.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.151e-05/0.1003, allocations: 20 kB / 353.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.1004, allocations: 23.92 kB / 353.9 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.998e-05/0.1004, allocations: 79.59 kB / 354 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.1007, allocations: 171.7 kB / 354.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1007, allocations: 0 / 354.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1007, allocations: 0 / 354.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.1007, allocations: 0 / 354.2 MB, free: 0.9648 MB / 286.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.0006526/0.1014, allocations: 435.1 kB / 354.6 MB, free: 500 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1014, allocations: 15.89 kB / 354.6 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.1015, allocations: 16.75 kB / 354.6 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.1018, allocations: 204.1 kB / 354.8 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1018, allocations: 8.609 kB / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.1018, allocations: 12.38 kB / 354.8 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.102, allocations: 117 kB / 354.9 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1021, allocations: 0 / 354.9 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.1021, allocations: 8 kB / 354.9 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.1021, allocations: 0 / 354.9 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.1023, allocations: 80.7 kB / 355 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000844/0.1032, allocations: 0.6055 MB / 355.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.1035, allocations: 90.61 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.748e-05/0.1036, allocations: 24.98 kB / 355.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1036, allocations: 4 kB / 355.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.1036, allocations: 38.55 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.1036, allocations: 3.938 kB / 355.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007259/0.1043, allocations: 251.4 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.1044, allocations: 59.34 kB / 356.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1045, allocations: 145.7 kB / 356.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.1046, allocations: 29.7 kB / 356.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.123e-05/0.1047, allocations: 128 kB / 356.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.1047, allocations: 19.66 kB / 356.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/0.1047, allocations: 25.7 kB / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1048, allocations: 318.8 kB / 356.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.463e-05/0.1049, allocations: 20 kB / 356.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.035e-05/0.105, allocations: 46.5 kB / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.1052, allocations: 82.47 kB / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1052, allocations: 0 / 356.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003179/0.1055, allocations: 138.3 kB / 357 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1055, allocations: 4 kB / 357 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.1055, allocations: 4.062 kB / 357 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001918/0.1057, allocations: 36.83 kB / 357.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.045e-05/0.1058, allocations: 11.94 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.1074, allocations: 1.689 MB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.496e-05/0.1075, allocations: 11.95 kB / 358.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.1075, allocations: 4 kB / 358.8 MB, free: 11.89 MB / 302.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 9.769e-05/0.1076, allocations: 117.8 kB / 358.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.1076, allocations: 11.84 kB / 358.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.1077, allocations: 12.72 kB / 358.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1077, allocations: 0 / 358.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.1077, allocations: 0 / 358.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1077, allocations: 7.984 kB / 358.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.1079, allocations: 213.6 kB / 359.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1079, allocations: 0 / 359.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.028e-05/0.108, allocations: 7.938 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.1081, allocations: 32.83 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.1081, allocations: 4 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.1094, allocations: 1.689 MB / 360.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1094, allocations: 0 / 360.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.1097, allocations: 212.2 kB / 361.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.1098, allocations: 85.02 kB / 361.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.1098, allocations: 3.938 kB / 361.2 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.1099, allocations: 12.05 kB / 361.2 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.11, allocations: 11.94 kB / 361.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.11, allocations: 3.984 kB / 361.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.335e-05/0.1101, allocations: 110 kB / 361.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1101, allocations: 0 / 361.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.1104, allocations: 44.03 kB / 361.3 MB, free: 9.09 MB / 302.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.0001172/0.1106, allocations: 103.7 kB / 361.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003786/0.111, allocations: 190.6 kB / 361.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.111, allocations: 7.938 kB / 361.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.1112, allocations: 150.7 kB / 361.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.1115, allocations: 15.92 kB / 361.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006012/0.1121, allocations: 313.8 kB / 362.1 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.1123, allocations: 0.7079 MB / 362.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.795e-05/0.1124, allocations: 11.44 kB / 362.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1124, allocations: 0 / 362.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of Templates: time 0.003597/0.116, allocations: 1.895 MB / 364.7 MB, free: 5.617 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches