Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009265/0.0009267, allocations: 203.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007176/0.0007175, allocations: 99.11 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001974/0.0001975, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1776, allocations: 51.29 MB / 408.6 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08368/0.2613, allocations: 79.36 MB / 488 MB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.2615, allocations: 71.97 kB / 488.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007337/0.2689, allocations: 2.92 MB / 491 MB, free: 9.277 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2689, allocations: 0 / 491 MB, free: 9.277 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.2689, allocations: 4 kB / 491 MB, free: 9.273 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.0004597/0.2694, allocations: 427.1 kB / 491.4 MB, free: 8.801 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.2694, allocations: 12.03 kB / 491.4 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.2696, allocations: 32.73 kB / 491.5 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.2698, allocations: 200.1 kB / 491.7 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.2698, allocations: 8.609 kB / 491.7 MB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.2698, allocations: 12.38 kB / 491.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.27, allocations: 116.1 kB / 491.8 MB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.2701, allocations: 4.188 kB / 491.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.2701, allocations: 7.938 kB / 491.8 MB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.2701, allocations: 4 kB / 491.8 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.2703, allocations: 88.59 kB / 491.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007475/0.271, allocations: 0.6056 MB / 492.5 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.2713, allocations: 94.5 kB / 492.6 MB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.213e-05/0.2714, allocations: 36.91 kB / 492.6 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.2714, allocations: 8 kB / 492.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.2715, allocations: 30.56 kB / 492.7 MB, free: 7.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.2715, allocations: 0 / 492.7 MB, free: 7.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006493/0.2721, allocations: 259.4 kB / 492.9 MB, free: 7.129 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.2722, allocations: 51.41 kB / 493 MB, free: 7.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.2723, allocations: 148 kB / 493.1 MB, free: 6.914 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.2723, allocations: 25.7 kB / 493.1 MB, free: 6.883 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.2724, allocations: 128 kB / 493.3 MB, free: 6.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.2724, allocations: 31.64 kB / 493.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.2724, allocations: 0 / 493.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.2725, allocations: 322.8 kB / 493.6 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.297e-05/0.2726, allocations: 19.98 kB / 493.6 MB, free: 6.375 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.923e-05/0.2727, allocations: 46.56 kB / 493.7 MB, free: 6.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.2728, allocations: 78.48 kB / 493.8 MB, free: 6.234 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2728, allocations: 0 / 493.8 MB, free: 6.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002788/0.2731, allocations: 146.2 kB / 493.9 MB, free: 6.082 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2731, allocations: 4 kB / 493.9 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.2731, allocations: 0 / 493.9 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.2733, allocations: 40.83 kB / 493.9 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.293e-05/0.2734, allocations: 11.94 kB / 493.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.2747, allocations: 1.52 MB / 495.5 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.445e-05/0.2748, allocations: 15.91 kB / 495.5 MB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.2748, allocations: 4 kB / 495.5 MB, free: 4.355 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 8.281e-05/0.2749, allocations: 121.8 kB / 495.6 MB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.2749, allocations: 11.91 kB / 495.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.2749, allocations: 8.719 kB / 495.6 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2749, allocations: 0 / 495.6 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.2749, allocations: 7.938 kB / 495.6 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2749, allocations: 192 / 495.6 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.2752, allocations: 213.6 kB / 495.8 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2752, allocations: 11.88 kB / 495.9 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.2752, allocations: 7.984 kB / 495.9 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001222/0.2753, allocations: 32.84 kB / 495.9 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.2754, allocations: 4 kB / 495.9 MB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.2765, allocations: 1.506 MB / 497.4 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2765, allocations: 0 / 497.4 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.2768, allocations: 220.2 kB / 497.6 MB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/0.2768, allocations: 85.02 kB / 497.7 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.2768, allocations: 3.984 kB / 497.7 MB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.277, allocations: 11.84 kB / 497.7 MB, free: 1.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.277, allocations: 11.98 kB / 497.7 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.277, allocations: 4 kB / 497.7 MB, free: 1.875 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.285e-05/0.2771, allocations: 110.5 kB / 497.8 MB, free: 1.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2771, allocations: 0 / 497.8 MB, free: 1.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003265/0.2774, allocations: 39.94 kB / 497.9 MB, free: 1.73 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.0001059/0.2775, allocations: 99.23 kB / 498 MB, free: 1.621 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003407/0.2779, allocations: 198.6 kB / 498.2 MB, free: 1.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2779, allocations: 7.938 kB / 498.2 MB, free: 1.406 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.2781, allocations: 146.7 kB / 498.3 MB, free: 1.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.2783, allocations: 11.98 kB / 498.3 MB, free: 1.238 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004688/0.2788, allocations: 380.1 kB / 498.7 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.2791, allocations: 0.716 MB / 499.4 MB, free: 100 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.341e-05/0.2791, allocations: 7.438 kB / 499.4 MB, free: 92 kB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2791, allocations: 0 / 499.4 MB, free: 92 kB / 362.7 MB Notification: Performance of Templates: time 0.002948/0.2821, allocations: 1.865 MB / 0.4895 GB, free: 14.23 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches