Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 176.4 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.3 MB / 241.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007555/0.0007555, allocations: 98.69 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003156, allocations: 15.94 kB / 352.3 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3235, allocations: 50.4 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.4354, allocations: 78.85 MB / 481.6 MB, free: 1.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4357, allocations: 71.97 kB / 481.7 MB, free: 1.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01702/0.4527, allocations: 5.141 MB / 486.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.4528, allocations: 0 / 486.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.556e-05/0.4528, allocations: 4.375 kB / 486.8 MB, free: 12.25 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00131/0.4541, allocations: 0.5847 MB / 487.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.4542, allocations: 12.03 kB / 487.4 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.4544, allocations: 40.5 kB / 487.4 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005625/0.455, allocations: 279.6 kB / 487.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.455, allocations: 20.94 kB / 487.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.26e-05/0.4551, allocations: 24.38 kB / 487.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007744/0.4559, allocations: 265.4 kB / 488 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.4559, allocations: 4.172 kB / 488 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.333e-05/0.456, allocations: 19.94 kB / 488 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.456, allocations: 12 kB / 488.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007236/0.4568, allocations: 226.1 kB / 488.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.4592, allocations: 0.995 MB / 489.3 MB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006516/0.4599, allocations: 230.6 kB / 489.5 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000356/0.4603, allocations: 128.7 kB / 489.6 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.4603, allocations: 7.938 kB / 489.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.4604, allocations: 34.56 kB / 489.7 MB, free: 9.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.845e-06/0.4604, allocations: 8 kB / 489.7 MB, free: 9.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001831/0.4622, allocations: 0.5755 MB / 490.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.4623, allocations: 63.34 kB / 490.3 MB, free: 8.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/0.4627, allocations: 250.6 kB / 490.6 MB, free: 8.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.827e-05/0.4627, allocations: 33.7 kB / 490.6 MB, free: 8.211 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.4629, allocations: 183.9 kB / 490.8 MB, free: 8.023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.133e-05/0.463, allocations: 70.91 kB / 490.8 MB, free: 7.953 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.463, allocations: 7.938 kB / 490.8 MB, free: 7.945 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.4632, allocations: 338.8 kB / 491.2 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.4635, allocations: 80.42 kB / 491.3 MB, free: 7.523 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.4638, allocations: 113.1 kB / 491.4 MB, free: 7.406 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005574/0.4644, allocations: 195.2 kB / 491.6 MB, free: 7.207 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4644, allocations: 0 / 491.6 MB, free: 7.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008964/0.4653, allocations: 339.6 kB / 491.9 MB, free: 6.863 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.4653, allocations: 7.938 kB / 491.9 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.4653, allocations: 4 kB / 491.9 MB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003621/0.4657, allocations: 77.61 kB / 492 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.466, allocations: 39.97 kB / 492 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00292/0.4689, allocations: 2.836 MB / 494.9 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.4692, allocations: 35.86 kB / 494.9 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.4693, allocations: 8 kB / 494.9 MB, free: 3.582 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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002116/0.4695, allocations: 138 kB / 495 MB, free: 3.438 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.004e-05/0.4696, allocations: 27.72 kB / 495.1 MB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.844e-05/0.4697, allocations: 30.17 kB / 495.1 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.4697, allocations: 4 kB / 495.1 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.4697, allocations: 0 / 495.1 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4697, allocations: 7.938 kB / 495.1 MB, free: 3.371 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.4712, allocations: 0.6932 MB / 495.8 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4712, allocations: 0 / 495.8 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.4714, allocations: 31.98 kB / 495.8 MB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.4717, allocations: 81.84 kB / 495.9 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.4717, allocations: 7.938 kB / 495.9 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002736/0.4744, allocations: 2.823 MB / 498.7 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4744, allocations: 4.062 kB / 498.7 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008993/0.4754, allocations: 392.7 kB / 499.1 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.4755, allocations: 108.8 kB / 499.2 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.304e-05/0.4756, allocations: 0 / 499.2 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.4759, allocations: 35.98 kB / 499.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.955e-05/0.476, allocations: 27.91 kB / 499.3 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.4761, allocations: 4 kB / 499.3 MB, free: 14.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002771/0.4764, allocations: 193.8 kB / 499.5 MB, free: 14.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4764, allocations: 0 / 499.5 MB, free: 14.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005833/0.477, allocations: 95.84 kB / 499.6 MB, free: 14.52 MB / 378.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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001843/0.4772, allocations: 107.2 kB / 499.7 MB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000821/0.478, allocations: 466.7 kB / 0.4884 GB, free: 13.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.478, allocations: 0 / 0.4884 GB, free: 13.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.4785, allocations: 357.3 kB / 0.4888 GB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.4789, allocations: 52.41 kB / 0.4888 GB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.4801, allocations: 0.598 MB / 0.4894 GB, free: 12.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.4806, allocations: 0.7677 MB / 0.4901 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.4807, allocations: 22.28 kB / 0.4902 GB, free: 12.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.305e-05/0.4808, allocations: 27.38 kB / 0.4902 GB, free: 12.03 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4808, allocations: 0 / 0.4902 GB, free: 12.03 MB / 378.7 MB Notification: Performance of Templates: time 0.007555/0.4883, allocations: 3.331 MB / 0.4934 GB, free: 8.73 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches