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.00117/0.00117, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001241/0.001241, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.361/1.361, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001237, allocations: 59 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1027, allocations: 49.43 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004816/0.1075, allocations: 2.991 MB / 353.7 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.1091, allocations: 0.6855 MB / 354.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003475/0.1094, allocations: 7.938 kB / 354.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.1098, allocations: 59.48 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.1101, allocations: 95.06 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.1105, allocations: 91.88 kB / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005832/0.1111, allocations: 414.2 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003048/0.1114, allocations: 107 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.1117, allocations: 151.5 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.112, allocations: 171.2 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.496e-05/0.1121, allocations: 32 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.1122, allocations: 32 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.1123, allocations: 67.77 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.1125, allocations: 179.1 kB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.113, allocations: 386.9 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.113, allocations: 0 / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.113, allocations: 0 / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.113, allocations: 3.938 kB / 356.2 MB, free: 14.95 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.001248/0.1143, allocations: 0.6314 MB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1143, allocations: 8.031 kB / 356.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.1144, allocations: 36.56 kB / 356.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.115, allocations: 279.5 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.1151, allocations: 24.94 kB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1151, allocations: 24.38 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/0.1157, allocations: 261.2 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1157, allocations: 0 / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.1158, allocations: 8 kB / 357.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.1158, allocations: 8 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005405/0.1163, allocations: 218.1 kB / 357.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.1183, allocations: 0.9716 MB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/0.1189, allocations: 306.9 kB / 358.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.1191, allocations: 108.4 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.1192, allocations: 4 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.1192, allocations: 34.56 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.923e-06/0.1192, allocations: 0 / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001379/0.1206, allocations: 0.5714 MB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.1206, allocations: 51.41 kB / 359.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.1209, allocations: 258.6 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.121, allocations: 33.7 kB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1211, allocations: 179.9 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.1212, allocations: 74.86 kB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/0.1213, allocations: 41.94 kB / 360.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.1215, allocations: 334.8 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.1217, allocations: 76.42 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.1219, allocations: 112.6 kB / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.1223, allocations: 182.5 kB / 360.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1223, allocations: 4 kB / 360.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006631/0.123, allocations: 330.6 kB / 361.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.123, allocations: 4 kB / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.902e-06/0.123, allocations: 0 / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.1234, allocations: 73.73 kB / 361.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.1236, allocations: 39.91 kB / 361.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.1261, allocations: 3.055 MB / 364.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.1263, allocations: 23.77 kB / 364.5 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.1264, allocations: 12 kB / 364.5 MB, free: 6.02 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.0001648/0.1265, allocations: 137.9 kB / 364.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.1266, allocations: 31.64 kB / 364.6 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.1267, allocations: 30.19 kB / 364.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1267, allocations: 0 / 364.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.1267, allocations: 4 kB / 364.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1267, allocations: 3.984 kB / 364.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.1278, allocations: 0.6847 MB / 365.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1278, allocations: 0 / 365.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.128, allocations: 31.97 kB / 365.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.1282, allocations: 81.8 kB / 365.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.1282, allocations: 4 kB / 365.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/0.1306, allocations: 3.032 MB / 368.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1306, allocations: 32 / 368.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006623/0.1312, allocations: 384.6 kB / 368.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.012e-05/0.1313, allocations: 112.6 kB / 369 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.1314, allocations: 4 kB / 369 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.1317, allocations: 35.97 kB / 369 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.1317, allocations: 15.98 kB / 369 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.1318, allocations: 11.92 kB / 369.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.132, allocations: 186 kB / 369.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.132, allocations: 0 / 369.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004385/0.1324, allocations: 91.84 kB / 369.3 MB, free: 0.7656 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.000152/0.1326, allocations: 117.9 kB / 369.4 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008428/0.1334, allocations: 453.1 kB / 369.9 MB, free: 180 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1334, allocations: 0 / 369.9 MB, free: 180 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.16/0.2934, allocations: 339.2 kB / 370.2 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.2941, allocations: 52.12 kB / 370.3 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.2952, allocations: 0.5244 MB / 370.8 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.2954, allocations: 0.765 MB / 371.6 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.473e-05/0.2955, allocations: 21.33 kB / 371.6 MB, free: 24.39 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2955, allocations: 3.75 kB / 371.6 MB, free: 24.39 MB / 302.1 MB Notification: Performance of Templates: time 0.009681/0.3052, allocations: 5.597 MB / 377.2 MB, free: 23.91 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 -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