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.001461/0.001461, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008163/0.0008163, allocations: 106.2 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.217e-05/2.206e-05, allocations: 8 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 51.48 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.4047, allocations: 78.69 MB / 473.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001583/0.4049, allocations: 68.78 kB / 473.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006705/0.4117, allocations: 2.889 MB / 476.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4117, allocations: 0 / 476.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.4117, allocations: 4 kB / 476.8 MB, free: 11.4 MB / 346.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.0003365/0.412, allocations: 412.8 kB / 477.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.4121, allocations: 15.97 kB / 477.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.4122, allocations: 27 kB / 477.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.4124, allocations: 192.9 kB / 477.4 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.4124, allocations: 4 kB / 477.5 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.4124, allocations: 11.61 kB / 477.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001267/0.4126, allocations: 68.84 kB / 477.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.4127, allocations: 91.98 kB / 477.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.4127, allocations: 0 / 477.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.4128, allocations: 0 / 477.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4128, allocations: 8 kB / 477.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006041/0.4134, allocations: 0.5714 MB / 478.2 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.4136, allocations: 77.8 kB / 478.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.455e-05/0.4137, allocations: 27.67 kB / 478.3 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.4137, allocations: 0 / 478.3 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.464e-05/0.4137, allocations: 34.06 kB / 478.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 8.12e-07/0.4137, allocations: 4 kB / 478.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000271/0.414, allocations: 101.2 kB / 478.4 MB, free: 9.871 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.672e-05/0.414, allocations: 55.41 kB / 478.5 MB, free: 9.805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.4141, allocations: 127.3 kB / 478.6 MB, free: 9.691 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.828e-06/0.4141, allocations: 25.7 kB / 478.6 MB, free: 9.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.266e-05/0.4142, allocations: 119.1 kB / 478.8 MB, free: 9.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.4142, allocations: 25.5 kB / 478.8 MB, free: 9.531 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-06/0.4142, allocations: 0 / 478.8 MB, free: 9.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.452e-05/0.4143, allocations: 324.9 kB / 479.1 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.678e-05/0.4143, allocations: 15.62 kB / 479.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.544e-05/0.4143, allocations: 34.22 kB / 479.2 MB, free: 9.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.686e-05/0.4144, allocations: 24.66 kB / 479.2 MB, free: 9.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4144, allocations: 0 / 479.2 MB, free: 9.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001869/0.4146, allocations: 122.7 kB / 479.3 MB, free: 9.055 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.4146, allocations: 4 kB / 479.3 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.4146, allocations: 4 kB / 479.3 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.4148, allocations: 34.14 kB / 479.3 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.06e-05/0.4148, allocations: 12.64 kB / 479.3 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008745/0.4157, allocations: 1.443 MB / 480.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.603e-05/0.4158, allocations: 5.391 kB / 480.8 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.4158, allocations: 8.062 kB / 480.8 MB, free: 7.578 MB / 346.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 () * 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 4.767e-05/0.4159, allocations: 106.3 kB / 480.9 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.4159, allocations: 11.81 kB / 480.9 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.012e-05/0.4159, allocations: 17.19 kB / 480.9 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.4159, allocations: 0 / 480.9 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.4159, allocations: 1.594 kB / 480.9 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4159, allocations: 3.984 kB / 480.9 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.4161, allocations: 184 kB / 481.1 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4161, allocations: 0 / 481.1 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.4161, allocations: 10.72 kB / 481.1 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.4162, allocations: 37.14 kB / 481.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.4163, allocations: 1.266 kB / 481.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007488/0.417, allocations: 1.434 MB / 482.6 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.417, allocations: 1.734 kB / 482.6 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.4172, allocations: 202.8 kB / 482.8 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.349e-05/0.4173, allocations: 94.55 kB / 482.9 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.4173, allocations: 1.812 kB / 482.9 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.336e-05/0.4174, allocations: 11.19 kB / 482.9 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.4174, allocations: 11.38 kB / 482.9 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.4174, allocations: 0 / 482.9 MB, free: 5.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.472e-05/0.4175, allocations: 108.2 kB / 483 MB, free: 5.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4175, allocations: 3.938 kB / 483 MB, free: 5.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003118/0.4178, allocations: 35.91 kB / 483.1 MB, free: 5.371 MB / 346.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 () * 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.0001032/0.4179, allocations: 100.8 kB / 483.2 MB, free: 5.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002373/0.4182, allocations: 156.7 kB / 483.3 MB, free: 5.133 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4182, allocations: 4 kB / 483.3 MB, free: 5.129 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.4183, allocations: 137.5 kB / 483.5 MB, free: 5.004 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.4185, allocations: 17.39 kB / 483.5 MB, free: 4.992 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002844/0.4188, allocations: 152.9 kB / 483.6 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001298/0.4189, allocations: 0.7106 MB / 484.3 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.873e-05/0.419, allocations: 9.797 kB / 484.3 MB, free: 4.121 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.71e-05/0.419, allocations: 7.438 kB / 484.3 MB, free: 4.113 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.419, allocations: 5.781 kB / 484.4 MB, free: 4.109 MB / 346.7 MB Notification: Performance of Templates: time 0.003391/0.4224, allocations: 1.214 MB / 485.6 MB, free: 3.234 MB / 346.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