Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 120.9 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 208.3 kB / 18.79 MB, free: 4.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.468/1.468, allocations: 230.4 MB / 250 MB, free: 9.039 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 71.83 kB / 367.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2567, allocations: 53.31 MB / 420.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004449/0.2612, allocations: 3.037 MB / 423.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2626, allocations: 0.7556 MB / 424.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.2627, allocations: 4 kB / 424.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.2629, allocations: 59.42 kB / 424.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.2631, allocations: 103 kB / 424.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.2634, allocations: 99.86 kB / 424.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004667/0.2639, allocations: 414.2 kB / 425.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.2641, allocations: 83.03 kB / 425.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.2643, allocations: 155.5 kB / 425.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.2645, allocations: 159.3 kB / 425.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.2646, allocations: 32 kB / 425.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.762e-05/0.2647, allocations: 43.98 kB / 425.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.539e-05/0.2648, allocations: 75.69 kB / 425.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.2649, allocations: 179.1 kB / 425.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.2654, allocations: 390.2 kB / 426.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2654, allocations: 4 kB / 426.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2654, allocations: 0 / 426.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2654, allocations: 0 / 426.2 MB, free: 2.758 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.001205/0.2666, allocations: 0.6495 MB / 426.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2666, allocations: 8.031 kB / 426.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.2668, allocations: 48.69 kB / 426.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.2673, allocations: 291.7 kB / 427.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.2674, allocations: 20.94 kB / 427.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.2674, allocations: 24.38 kB / 427.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005386/0.2679, allocations: 265.2 kB / 427.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2679, allocations: 0 / 427.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.268, allocations: 12 kB / 427.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.268, allocations: 4 kB / 427.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005038/0.2685, allocations: 218.1 kB / 427.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.2703, allocations: 0.9719 MB / 428.7 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005689/0.2708, allocations: 283.8 kB / 429 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.2711, allocations: 96.81 kB / 429.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.2711, allocations: 4 kB / 429.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.2711, allocations: 30.56 kB / 429.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.2711, allocations: 0 / 429.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001382/0.2725, allocations: 0.5611 MB / 429.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.2726, allocations: 55.41 kB / 429.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.2729, allocations: 262.6 kB / 430 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.2729, allocations: 29.7 kB / 430 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.273, allocations: 184.2 kB / 430.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.2731, allocations: 79.38 kB / 430.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.943e-05/0.2732, allocations: 41.89 kB / 430.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.2734, allocations: 342.8 kB / 430.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.2736, allocations: 76.42 kB / 430.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.2738, allocations: 115.4 kB / 430.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.2742, allocations: 182.4 kB / 431 MB, free: 13.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2742, allocations: 0 / 431 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006935/0.2749, allocations: 322.8 kB / 431.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.275, allocations: 8 kB / 431.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.275, allocations: 0 / 431.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003246/0.2753, allocations: 81.67 kB / 431.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.2755, allocations: 35.97 kB / 431.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.2782, allocations: 3.048 MB / 434.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.2784, allocations: 31.84 kB / 434.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.2784, allocations: 4 kB / 434.5 MB, free: 9.828 MB / 350.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.0001819/0.2786, allocations: 144.6 kB / 434.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.278e-05/0.2786, allocations: 39.81 kB / 434.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.394e-05/0.2787, allocations: 26.17 kB / 434.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2787, allocations: 8.125 kB / 434.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.2787, allocations: 4 kB / 434.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.2787, allocations: 3.984 kB / 434.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.2798, allocations: 0.6797 MB / 435.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2798, allocations: 0 / 435.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.28, allocations: 31.91 kB / 435.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.2802, allocations: 73.67 kB / 435.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.2802, allocations: 0 / 435.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.2827, allocations: 3.044 MB / 438.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.2827, allocations: 8.094 kB / 438.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006369/0.2834, allocations: 377.4 kB / 439 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.329e-05/0.2835, allocations: 108.9 kB / 439.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.2835, allocations: 4 kB / 439.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.2837, allocations: 31.97 kB / 439.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.772e-05/0.2838, allocations: 19.92 kB / 439.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.2838, allocations: 7.984 kB / 439.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.284, allocations: 186 kB / 439.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.284, allocations: 4 kB / 439.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.2844, allocations: 91.89 kB / 439.4 MB, free: 4.551 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.0001439/0.2846, allocations: 110.2 kB / 439.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008976/0.2855, allocations: 437.1 kB / 439.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.2855, allocations: 3.938 kB / 439.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004476/0.2859, allocations: 337.2 kB / 440.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.2863, allocations: 56.78 kB / 440.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009172/0.2872, allocations: 0.4962 MB / 440.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.2877, allocations: 0.7639 MB / 441.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00013/0.2878, allocations: 26.28 kB / 441.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.309e-05/0.2879, allocations: 19.44 kB / 441.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2879, allocations: 3.938 kB / 441.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of Templates: time 0.008537/0.2964, allocations: 3.791 MB / 445.4 MB, free: 14.45 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches