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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001075/0.001074, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.178/2.178, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00229/0.00229, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4172/0.4195, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.008433/0.428, allocations: 3.022 MB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.4306, allocations: 0.7362 MB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003558/0.431, allocations: 11.94 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.4314, allocations: 63.42 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005213/0.432, allocations: 91.11 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006423/0.4327, allocations: 103.8 kB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009278/0.4336, allocations: 410.2 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004307/0.4341, allocations: 119.1 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004904/0.4346, allocations: 151.4 kB / 414.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003865/0.435, allocations: 163.3 kB / 414.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.4352, allocations: 32 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.4353, allocations: 40 kB / 414.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002277/0.4356, allocations: 75.75 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.436, allocations: 187.1 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008603/0.4368, allocations: 387.8 kB / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4369, allocations: 0 / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4369, allocations: 0 / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.4369, allocations: 0 / 415.5 MB, free: 12 MB / 334.1 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.001973/0.4389, allocations: 0.6392 MB / 416.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.439, allocations: 8.031 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.4394, allocations: 44.55 kB / 416.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007975/0.4402, allocations: 295.4 kB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.171e-05/0.4402, allocations: 24.94 kB / 416.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/0.4403, allocations: 24.38 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.4414, allocations: 257.2 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.4414, allocations: 0 / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.4415, allocations: 19.94 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.4416, allocations: 4 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.4426, allocations: 218.1 kB / 417 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/0.4459, allocations: 0.9638 MB / 418 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.447, allocations: 302 kB / 418.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/0.4475, allocations: 104.8 kB / 418.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.4476, allocations: 4 kB / 418.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.481e-05/0.4476, allocations: 34.56 kB / 418.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.927e-06/0.4476, allocations: 0 / 418.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002614/0.4503, allocations: 0.5669 MB / 419 MB, free: 8.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.4504, allocations: 55.41 kB / 419 MB, free: 8.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005334/0.4509, allocations: 262.6 kB / 419.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.047e-05/0.451, allocations: 29.7 kB / 419.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.4512, allocations: 179.9 kB / 419.5 MB, free: 7.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4513, allocations: 74.91 kB / 419.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.4515, allocations: 45.94 kB / 419.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.4517, allocations: 330.8 kB / 419.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004212/0.4522, allocations: 88.42 kB / 420 MB, free: 7.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.4526, allocations: 107.4 kB / 420.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008193/0.4535, allocations: 182.4 kB / 420.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.4535, allocations: 8 kB / 420.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001511/0.455, allocations: 318.7 kB / 420.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.4551, allocations: 11.12 kB / 420.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.4551, allocations: 0 / 420.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005719/0.4557, allocations: 81.73 kB / 420.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004249/0.4561, allocations: 39.91 kB / 420.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004635/0.4608, allocations: 3.047 MB / 423.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004434/0.4613, allocations: 27.73 kB / 423.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.4614, allocations: 8 kB / 423.8 MB, free: 3.059 MB / 334.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003108/0.4617, allocations: 141.8 kB / 424 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.4618, allocations: 35.59 kB / 424 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.96e-05/0.462, allocations: 30.17 kB / 424 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.462, allocations: 4 kB / 424 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.462, allocations: 0 / 424 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.462, allocations: 7.984 kB / 424 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002022/0.4641, allocations: 0.6796 MB / 424.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.4641, allocations: 0 / 424.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/0.4644, allocations: 31.97 kB / 424.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004392/0.4648, allocations: 77.61 kB / 424.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.4649, allocations: 4.125 kB / 424.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004335/0.4692, allocations: 3.045 MB / 427.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.4693, allocations: 0 / 427.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.4706, allocations: 388.4 kB / 428.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.4708, allocations: 108.8 kB / 428.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/0.4709, allocations: 4 kB / 428.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005402/0.4714, allocations: 27.97 kB / 428.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.4716, allocations: 19.98 kB / 428.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.4717, allocations: 11.98 kB / 428.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00038/0.4721, allocations: 186 kB / 428.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4721, allocations: 0 / 428.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008485/0.473, allocations: 91.84 kB / 428.7 MB, free: 13.78 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002269/0.4732, allocations: 111.1 kB / 428.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.4748, allocations: 445.1 kB / 429.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.4749, allocations: 0 / 429.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008853/0.4758, allocations: 349.3 kB / 429.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007808/0.4766, allocations: 56.45 kB / 429.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.4783, allocations: 0.5179 MB / 430.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.4789, allocations: 0.7639 MB / 430.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.479, allocations: 19.44 kB / 430.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4791, allocations: 0 / 430.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of Templates: time 0.01623/0.4953, allocations: 5.705 MB / 436.6 MB, free: 5.734 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches