Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 204.4 kB / 18.11 MB, free: 3.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.574/1.574, allocations: 226.5 MB / 245.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008725/0.0008726, allocations: 107.7 kB / 297.5 MB, free: 6.859 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.0002563, allocations: 8 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2337, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.105/0.3387, allocations: 79.57 MB / 488.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.3391, allocations: 67.97 kB / 489 MB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01485/0.354, allocations: 5.248 MB / 494.2 MB, free: 6.613 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.354, allocations: 4.188 kB / 494.2 MB, free: 6.609 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.578e-05/0.354, allocations: 4 kB / 494.3 MB, free: 6.605 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.001014/0.3551, allocations: 0.5963 MB / 494.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3551, allocations: 12.03 kB / 494.9 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.3553, allocations: 44.55 kB / 494.9 MB, free: 5.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.3557, allocations: 275.6 kB / 495.2 MB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.3558, allocations: 20.94 kB / 495.2 MB, free: 5.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.3558, allocations: 28.38 kB / 495.2 MB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.3563, allocations: 269.3 kB / 495.5 MB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3564, allocations: 192 / 495.5 MB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.3564, allocations: 15.94 kB / 495.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.3564, allocations: 12 kB / 495.5 MB, free: 5.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004718/0.3569, allocations: 230.1 kB / 495.7 MB, free: 5.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.3586, allocations: 0.9948 MB / 496.7 MB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004601/0.3591, allocations: 222.6 kB / 496.9 MB, free: 3.734 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.3594, allocations: 143.2 kB / 497.1 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.3594, allocations: 4 kB / 497.1 MB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.3595, allocations: 34.56 kB / 497.1 MB, free: 3.551 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.3595, allocations: 0 / 497.1 MB, free: 3.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001266/0.3607, allocations: 0.5794 MB / 497.7 MB, free: 2.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.3608, allocations: 59.34 kB / 497.8 MB, free: 2.852 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.3611, allocations: 258.6 kB / 498 MB, free: 2.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.3611, allocations: 41.58 kB / 498.1 MB, free: 2.543 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3612, allocations: 179.9 kB / 498.2 MB, free: 2.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.3613, allocations: 78.89 kB / 498.3 MB, free: 2.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.3613, allocations: 4 kB / 498.3 MB, free: 2.277 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3614, allocations: 330.8 kB / 498.6 MB, free: 1.945 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.3617, allocations: 88.42 kB / 498.7 MB, free: 1.855 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.3619, allocations: 107.5 kB / 498.8 MB, free: 1.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.3623, allocations: 206.4 kB / 499 MB, free: 1.531 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3623, allocations: 0 / 499 MB, free: 1.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006223/0.3629, allocations: 330.8 kB / 499.4 MB, free: 1.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3629, allocations: 15.98 kB / 499.4 MB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3629, allocations: 4 kB / 499.4 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002756/0.3632, allocations: 65.67 kB / 499.4 MB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.3634, allocations: 43.97 kB / 499.5 MB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/0.3656, allocations: 2.835 MB / 0.4905 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.3659, allocations: 31.83 kB / 0.4906 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.3659, allocations: 8 kB / 0.4906 GB, free: 13.92 MB / 378.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.0001599/0.3661, allocations: 141.8 kB / 0.4907 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.3661, allocations: 27.72 kB / 0.4907 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.415e-05/0.3662, allocations: 26.19 kB / 0.4908 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3662, allocations: 4 kB / 0.4908 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3662, allocations: 0 / 0.4908 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3662, allocations: 7.922 kB / 0.4908 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.3672, allocations: 0.697 MB / 0.4915 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3673, allocations: 0 / 0.4915 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.3674, allocations: 31.97 kB / 0.4915 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001841/0.3676, allocations: 73.67 kB / 0.4916 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.3676, allocations: 8.062 kB / 0.4916 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.3698, allocations: 2.832 MB / 0.4943 GB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3698, allocations: 128 / 0.4943 GB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.3705, allocations: 400.7 kB / 0.4947 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.023e-05/0.3706, allocations: 104.8 kB / 0.4948 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.3706, allocations: 4 kB / 0.4948 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.3708, allocations: 39.97 kB / 0.4949 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.3709, allocations: 19.91 kB / 0.4949 GB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.371, allocations: 15.94 kB / 0.4949 GB, free: 9.129 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001777/0.3711, allocations: 189.8 kB / 0.4951 GB, free: 8.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3711, allocations: 0 / 0.4951 GB, free: 8.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.3716, allocations: 91.84 kB / 0.4952 GB, free: 8.855 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.0001733/0.3717, allocations: 111.2 kB / 0.4953 GB, free: 8.738 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008033/0.3725, allocations: 457.4 kB / 0.4957 GB, free: 8.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3726, allocations: 0 / 0.4957 GB, free: 8.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00045/0.373, allocations: 358.8 kB / 0.496 GB, free: 7.891 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.3735, allocations: 54.7 kB / 0.4961 GB, free: 7.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009053/0.3744, allocations: 0.5873 MB / 0.4967 GB, free: 7.219 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.3748, allocations: 0.7716 MB / 0.4974 GB, free: 6.422 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.3749, allocations: 26.27 kB / 0.4974 GB, free: 6.398 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.449e-05/0.375, allocations: 19.44 kB / 0.4975 GB, free: 6.379 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.375, allocations: 4 kB / 0.4975 GB, free: 6.375 MB / 378.7 MB Notification: Performance of Templates: time 0.007412/0.3824, allocations: 3.333 MB / 0.5007 GB, free: 3.074 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches