Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 115.4 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 50.33 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09432, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003922/0.09827, allocations: 2.993 MB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.09932, allocations: 0.6855 MB / 355.2 MB, free: 8 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.09946, allocations: 7.938 kB / 355.2 MB, free: 0 / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001823/0.09966, allocations: 51.5 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.09983, allocations: 99.06 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.1001, allocations: 87.88 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.1005, allocations: 414.1 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.1008, allocations: 111.1 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.101, allocations: 147.4 kB / 356.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.1012, allocations: 171.3 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.293e-05/0.1012, allocations: 36 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.059e-05/0.1013, allocations: 32 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.62e-05/0.1014, allocations: 67.77 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001713/0.1016, allocations: 179.1 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.1019, allocations: 382.6 kB / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1019, allocations: 0 / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1019, allocations: 0 / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.102, allocations: 0 / 356.9 MB, free: 14.25 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.001017/0.103, allocations: 0.643 MB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.103, allocations: 11.89 kB / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.081e-05/0.1031, allocations: 36.56 kB / 357.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.1035, allocations: 287.5 kB / 357.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.1035, allocations: 20.94 kB / 357.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.1036, allocations: 24.38 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.104, allocations: 261.2 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1041, allocations: 0 / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.1041, allocations: 16 kB / 358.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1041, allocations: 4 kB / 358.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004675/0.1046, allocations: 218.1 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.1062, allocations: 0.9599 MB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.1068, allocations: 303.7 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.107, allocations: 107.1 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.107, allocations: 8 kB / 359.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.1071, allocations: 30.56 kB / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.1071, allocations: 4 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001217/0.1083, allocations: 0.5629 MB / 360.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.1083, allocations: 63.34 kB / 360.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.1086, allocations: 254.6 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1086, allocations: 33.7 kB / 360.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1088, allocations: 179.9 kB / 360.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.327e-05/0.1088, allocations: 78.89 kB / 361 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.592e-05/0.1089, allocations: 41.94 kB / 361 MB, free: 9.852 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1091, allocations: 334.8 kB / 361.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.1093, allocations: 76.44 kB / 361.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.1095, allocations: 104.6 kB / 361.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003661/0.1099, allocations: 190.5 kB / 361.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1099, allocations: 0 / 361.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006288/0.1105, allocations: 322.6 kB / 362 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1105, allocations: 4 kB / 362 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1105, allocations: 8.062 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002595/0.1108, allocations: 81.66 kB / 362.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.111, allocations: 35.92 kB / 362.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.1133, allocations: 3.043 MB / 365.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.1135, allocations: 31.77 kB / 365.2 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1135, allocations: 4 kB / 365.2 MB, free: 5.32 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.000137/0.1136, allocations: 149.8 kB / 365.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.272e-05/0.1137, allocations: 31.66 kB / 365.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.44e-05/0.1138, allocations: 26.17 kB / 365.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1138, allocations: 7.938 kB / 365.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1138, allocations: 0 / 365.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1138, allocations: 0 / 365.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009752/0.1148, allocations: 0.6951 MB / 366.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.1148, allocations: 0 / 366.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.1149, allocations: 19.98 kB / 366.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.1151, allocations: 85.59 kB / 366.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.1151, allocations: 128 / 366.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002175/0.1173, allocations: 3.032 MB / 369.3 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1173, allocations: 0 / 369.3 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.1179, allocations: 391 kB / 369.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.118, allocations: 104.7 kB / 369.8 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.118, allocations: 4 kB / 369.8 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.1183, allocations: 27.97 kB / 369.8 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.1184, allocations: 31.91 kB / 369.8 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.1184, allocations: 4 kB / 369.8 MB, free: 336 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.1186, allocations: 194 kB / 370 MB, free: 144 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1186, allocations: 0 / 370 MB, free: 144 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.000356/0.1189, allocations: 87.84 kB / 370.1 MB, free: 56 kB / 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.1384/0.2573, allocations: 115.1 kB / 370.2 MB, free: 25.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008301/0.2582, allocations: 434.2 kB / 370.6 MB, free: 25.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.2582, allocations: 1.188 kB / 370.6 MB, free: 25.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003847/0.2586, allocations: 348.9 kB / 371 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.259, allocations: 53.7 kB / 371 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007967/0.2598, allocations: 498.9 kB / 371.5 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.26, allocations: 0.7641 MB / 372.3 MB, free: 24.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.2601, allocations: 21.02 kB / 372.3 MB, free: 24.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.767e-05/0.2602, allocations: 20.12 kB / 372.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.2602, allocations: 0 / 372.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of Templates: time 0.007696/0.2679, allocations: 3.695 MB / 376 MB, free: 24.18 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches