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.000921/0.0009212, allocations: 97.05 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009076/0.0009076, allocations: 202.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002414, allocations: 8 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.0902, allocations: 51.54 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003074/0.09332, allocations: 2.68 MB / 362.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.09465, allocations: 0.748 MB / 363.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.09491, allocations: 4 kB / 363.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.09509, allocations: 39.69 kB / 363.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.09536, allocations: 87.25 kB / 363.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.09569, allocations: 91.89 kB / 363.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.09614, allocations: 394.2 kB / 363.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.09637, allocations: 99.64 kB / 364 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.09666, allocations: 135.4 kB / 364.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.09687, allocations: 147.3 kB / 364.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.09692, allocations: 20 kB / 364.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.395e-05/0.09701, allocations: 20 kB / 364.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.057e-05/0.09707, allocations: 55.7 kB / 364.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.09726, allocations: 188.8 kB / 364.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.09752, allocations: 283.4 kB / 364.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.09753, allocations: 0 / 364.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.09754, allocations: 0 / 364.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.09756, allocations: 0 / 364.9 MB, free: 8.305 MB / 302.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.0009306/0.0985, allocations: 0.5887 MB / 365.5 MB, free: 7.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.09855, allocations: 8.031 kB / 365.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.09876, allocations: 52.45 kB / 365.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.09911, allocations: 279.6 kB / 365.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.09915, allocations: 20.94 kB / 365.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.09919, allocations: 24.38 kB / 365.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.09974, allocations: 273.2 kB / 366.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.09976, allocations: 0 / 366.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.0998, allocations: 12 kB / 366.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.09981, allocations: 4 kB / 366.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005221/0.1003, allocations: 238.1 kB / 366.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.102, allocations: 0.9949 MB / 367.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.1025, allocations: 311.6 kB / 367.7 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.1028, allocations: 124.8 kB / 367.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1028, allocations: 4 kB / 367.8 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.1028, allocations: 34.56 kB / 367.8 MB, free: 5.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.1028, allocations: 4 kB / 367.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001311/0.1042, allocations: 0.5832 MB / 368.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.1042, allocations: 59.41 kB / 368.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.1045, allocations: 258.6 kB / 368.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.1045, allocations: 33.64 kB / 368.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.1046, allocations: 183.9 kB / 368.9 MB, free: 3.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.1047, allocations: 70.98 kB / 369 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.1048, allocations: 21.72 kB / 369 MB, free: 3.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1049, allocations: 338.8 kB / 369.3 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.1051, allocations: 84.42 kB / 369.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.1053, allocations: 111.5 kB / 369.5 MB, free: 3.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.1057, allocations: 208.1 kB / 369.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1057, allocations: 0 / 369.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006619/0.1064, allocations: 342.8 kB / 370.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1064, allocations: 4 kB / 370.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1065, allocations: 4 kB / 370.1 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.1067, allocations: 69.61 kB / 370.2 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.1069, allocations: 43.97 kB / 370.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1657/0.2726, allocations: 2.835 MB / 373 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.2729, allocations: 29.5 kB / 373.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.273, allocations: 8.312 kB / 373.1 MB, free: 18.19 MB / 302.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.0001794/0.2732, allocations: 141 kB / 373.2 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.707e-05/0.2732, allocations: 29.75 kB / 373.2 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.742e-05/0.2733, allocations: 31.48 kB / 373.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.2733, allocations: 6.078 kB / 373.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.2733, allocations: 4.844 kB / 373.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2734, allocations: 4.922 kB / 373.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.2745, allocations: 0.6956 MB / 374 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2745, allocations: 3.562 kB / 374 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.2747, allocations: 35.86 kB / 374 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/0.2749, allocations: 70.73 kB / 374.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.2749, allocations: 3.859 kB / 374.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.2766, allocations: 2.832 MB / 376.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2766, allocations: 3.719 kB / 376.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006654/0.2773, allocations: 393.8 kB / 377.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.981e-05/0.2774, allocations: 107.2 kB / 377.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/0.2774, allocations: 8.781 kB / 377.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.2777, allocations: 41.52 kB / 377.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.2778, allocations: 18.58 kB / 377.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.2778, allocations: 7.141 kB / 377.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.278, allocations: 195.4 kB / 377.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.278, allocations: 1.312 kB / 377.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004257/0.2785, allocations: 90.59 kB / 377.8 MB, free: 14.88 MB / 302.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.0001103/0.2786, allocations: 105.4 kB / 377.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007986/0.2794, allocations: 466.2 kB / 378.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2794, allocations: 0.5312 kB / 378.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.2799, allocations: 359.4 kB / 378.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.2803, allocations: 46.88 kB / 378.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008798/0.2812, allocations: 0.6557 MB / 379.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.2815, allocations: 0.7697 MB / 380.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.9e-05/0.2815, allocations: 19 kB / 380.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2815, allocations: 0 / 380.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of Templates: time 0.01028/0.2918, allocations: 5.618 MB / 385.8 MB, free: 12.36 MB / 302.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