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.001695/0.001695, allocations: 103.5 kB / 17.98 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 213.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247.1 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 59.59 kB / 307.1 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.1014, allocations: 50.55 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004322/0.1058, allocations: 3.058 MB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1071, allocations: 0.744 MB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.1072, allocations: 7.938 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1074, allocations: 43.69 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.1076, allocations: 83.25 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.1079, allocations: 91.91 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.1083, allocations: 410.2 kB / 362.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.1086, allocations: 119 kB / 362.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.1088, allocations: 151.5 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.109, allocations: 163.3 kB / 362.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.1091, allocations: 32 kB / 362.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.464e-05/0.1092, allocations: 36 kB / 362.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-05/0.1092, allocations: 71.75 kB / 362.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.1094, allocations: 179.1 kB / 362.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.1097, allocations: 291.5 kB / 363.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1097, allocations: 7.938 kB / 363.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1098, allocations: 0 / 363.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1098, allocations: 0 / 363.1 MB, free: 8.898 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.001031/0.1108, allocations: 0.6314 MB / 363.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1108, allocations: 12.03 kB / 363.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.111, allocations: 44.55 kB / 363.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.1114, allocations: 275.6 kB / 364.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.1114, allocations: 20.94 kB / 364.1 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.1115, allocations: 28.38 kB / 364.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005444/0.112, allocations: 269.1 kB / 364.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.112, allocations: 0 / 364.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.1121, allocations: 12 kB / 364.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1121, allocations: 4 kB / 364.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.1126, allocations: 218.1 kB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.1143, allocations: 0.9794 MB / 365.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.1148, allocations: 303.5 kB / 365.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.1151, allocations: 112.8 kB / 366 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.1151, allocations: 4 kB / 366 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.1151, allocations: 34.56 kB / 366 MB, free: 5.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.1151, allocations: 4 kB / 366.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001306/0.1165, allocations: 0.5549 MB / 366.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.1165, allocations: 55.41 kB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.1168, allocations: 262.5 kB / 366.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.1168, allocations: 33.64 kB / 367 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.117, allocations: 183.9 kB / 367.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.117, allocations: 71 kB / 367.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.338e-05/0.1171, allocations: 41.94 kB / 367.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1173, allocations: 338.8 kB / 367.6 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.1175, allocations: 72.44 kB / 367.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.1177, allocations: 107.5 kB / 367.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004126/0.1181, allocations: 192.1 kB / 367.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1182, allocations: 0 / 367.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006765/0.1188, allocations: 322.8 kB / 368.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1189, allocations: 4 kB / 368.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1189, allocations: 0 / 368.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003168/0.1192, allocations: 85.66 kB / 368.3 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.1194, allocations: 31.98 kB / 368.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1793/0.2987, allocations: 3.052 MB / 371.4 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.299, allocations: 23.67 kB / 371.4 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.2991, allocations: 9.016 kB / 371.5 MB, free: 19.7 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.000171/0.2992, allocations: 145.3 kB / 371.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.83e-05/0.2993, allocations: 31.19 kB / 371.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.2994, allocations: 29.39 kB / 371.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.2994, allocations: 2.5 kB / 371.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.2994, allocations: 1.906 kB / 371.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2994, allocations: 1.734 kB / 371.7 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.3006, allocations: 0.6815 MB / 372.3 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3006, allocations: 1.219 kB / 372.3 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.3007, allocations: 27.19 kB / 372.4 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002298/0.301, allocations: 79.44 kB / 372.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.301, allocations: 7.859 kB / 372.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/0.303, allocations: 3.043 MB / 375.5 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3031, allocations: 5.312 kB / 375.5 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006933/0.3038, allocations: 384 kB / 375.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.349e-05/0.3038, allocations: 100.1 kB / 376 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.3039, allocations: 7.641 kB / 376 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.3042, allocations: 37.78 kB / 376 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.3043, allocations: 19.7 kB / 376 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.3043, allocations: 8.406 kB / 376 MB, free: 16.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.3046, allocations: 186.8 kB / 376.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3046, allocations: 3.906 kB / 376.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004912/0.3051, allocations: 95.59 kB / 376.3 MB, free: 16.22 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.0001503/0.3052, allocations: 101.4 kB / 376.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000786/0.306, allocations: 456.9 kB / 376.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.306, allocations: 1.219 kB / 376.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003953/0.3064, allocations: 344.1 kB / 377.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004705/0.3069, allocations: 55.08 kB / 377.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009801/0.3079, allocations: 0.6399 MB / 377.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.3082, allocations: 0.7628 MB / 378.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.629e-05/0.3082, allocations: 20.61 kB / 378.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3082, allocations: 4.984 kB / 378.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Templates: time 0.009053/0.3173, allocations: 5.641 MB / 384.3 MB, free: 13.69 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.1.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