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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 202.4 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 227.2 MB / 245 MB, free: 5.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008571/0.0008571, allocations: 97.34 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002345, allocations: 8 kB / 357.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1787, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0866/0.2654, allocations: 79.42 MB / 488.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.2656, allocations: 67.97 kB / 488.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007641/0.2732, allocations: 2.931 MB / 491.8 MB, free: 8.211 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2733, allocations: 0 / 491.8 MB, free: 8.211 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2733, allocations: 4 kB / 491.8 MB, free: 8.207 MB / 362.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.0004923/0.2738, allocations: 435 kB / 492.3 MB, free: 7.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2738, allocations: 8.031 kB / 492.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.274, allocations: 31.8 kB / 492.3 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.2742, allocations: 198.8 kB / 492.5 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.2743, allocations: 12.19 kB / 492.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.2743, allocations: 12 kB / 492.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.2745, allocations: 111.5 kB / 492.6 MB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.2745, allocations: 4 kB / 492.6 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.2746, allocations: 4 kB / 492.6 MB, free: 7.312 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-06/0.2746, allocations: 4 kB / 492.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.2748, allocations: 80.66 kB / 492.7 MB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.2756, allocations: 0.6174 MB / 493.3 MB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.2758, allocations: 86.62 kB / 493.4 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.2759, allocations: 0 / 493.4 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.2759, allocations: 34.69 kB / 493.5 MB, free: 6.395 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.2759, allocations: 7.875 kB / 493.5 MB, free: 6.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006451/0.2766, allocations: 255.5 kB / 493.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.2766, allocations: 63.3 kB / 493.8 MB, free: 6.035 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.892e-05/0.2767, allocations: 131.2 kB / 493.9 MB, free: 5.902 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.2767, allocations: 25.7 kB / 493.9 MB, free: 5.871 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.564e-05/0.2768, allocations: 131.9 kB / 494.1 MB, free: 5.734 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.2768, allocations: 15.75 kB / 494.1 MB, free: 5.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-06/0.2768, allocations: 4 kB / 494.1 MB, free: 5.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.277, allocations: 322.8 kB / 494.4 MB, free: 5.391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.02e-05/0.277, allocations: 19.98 kB / 494.4 MB, free: 5.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.779e-05/0.2771, allocations: 42.56 kB / 494.4 MB, free: 5.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.899e-05/0.2772, allocations: 32 kB / 494.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2772, allocations: 0 / 494.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002831/0.2775, allocations: 146.2 kB / 494.6 MB, free: 5.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2775, allocations: 8 kB / 494.6 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2775, allocations: 320 / 494.6 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.2777, allocations: 48.77 kB / 494.7 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.545e-05/0.2777, allocations: 8 kB / 494.7 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.2791, allocations: 1.514 MB / 496.2 MB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.468e-05/0.2792, allocations: 11.94 kB / 496.2 MB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.2792, allocations: 7.953 kB / 496.2 MB, free: 3.395 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 9.861e-05/0.2793, allocations: 129.8 kB / 496.3 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.085e-05/0.2794, allocations: 11.91 kB / 496.4 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.968e-05/0.2794, allocations: 8.719 kB / 496.4 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2794, allocations: 0 / 496.4 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2794, allocations: 4 kB / 496.4 MB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.2794, allocations: 0 / 496.4 MB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.2796, allocations: 209.6 kB / 496.6 MB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2796, allocations: 0 / 496.6 MB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.053e-05/0.2797, allocations: 8.297 kB / 496.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.2798, allocations: 40.84 kB / 496.6 MB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.2798, allocations: 7.922 kB / 496.6 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.2809, allocations: 1.51 MB / 498.1 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.281, allocations: 3.953 kB / 498.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.2812, allocations: 216.3 kB / 498.4 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.2813, allocations: 92.95 kB / 498.4 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.2813, allocations: 0 / 498.4 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.2814, allocations: 12 kB / 498.5 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.2815, allocations: 3.984 kB / 498.5 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-06/0.2815, allocations: 4 kB / 498.5 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.111e-05/0.2816, allocations: 113.7 kB / 498.6 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2816, allocations: 0 / 498.6 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.2819, allocations: 43.84 kB / 498.6 MB, free: 0.7617 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.282, allocations: 103.2 kB / 498.7 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003625/0.2824, allocations: 190.8 kB / 498.9 MB, free: 464 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2824, allocations: 0 / 498.9 MB, free: 464 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.2826, allocations: 162.8 kB / 499.1 MB, free: 288 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001649/0.2828, allocations: 7.953 kB / 499.1 MB, free: 280 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005017/0.2833, allocations: 354.4 kB / 499.4 MB, free: 15.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.2836, allocations: 0.7238 MB / 0.4884 GB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.349e-05/0.2836, allocations: 4.422 kB / 0.4884 GB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.133e-05/0.2837, allocations: 11.44 kB / 0.4884 GB, free: 15.14 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2837, allocations: 3.938 kB / 0.4884 GB, free: 15.13 MB / 378.7 MB Notification: Performance of Templates: time 0.003538/0.2872, allocations: 1.298 MB / 0.4897 GB, free: 13.85 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches