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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.001321, allocations: 116.9 kB / 18.41 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001354, allocations: 186.9 kB / 21.34 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 247.1 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001586, allocations: 51.91 kB / 358.7 MB, free: 8.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09703/0.09863, allocations: 49.44 MB / 408.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004438/0.1031, allocations: 2.991 MB / 411.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1045, allocations: 0.6738 MB / 411.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.1047, allocations: 11.94 kB / 411.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.1049, allocations: 55.44 kB / 411.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.1051, allocations: 103.1 kB / 411.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.1054, allocations: 91.81 kB / 412 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004816/0.1059, allocations: 410.2 kB / 412.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.1062, allocations: 111 kB / 412.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.1064, allocations: 155.4 kB / 412.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.1066, allocations: 159.3 kB / 412.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-05/0.1067, allocations: 32 kB / 412.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.232e-05/0.1068, allocations: 32 kB / 412.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.699e-05/0.1069, allocations: 75.69 kB / 413 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.1071, allocations: 175.2 kB / 413.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.1075, allocations: 386.4 kB / 413.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1076, allocations: 0 / 413.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1076, allocations: 4 kB / 413.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1076, allocations: 0 / 413.5 MB, free: 1.359 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.001096/0.1087, allocations: 0.635 MB / 414.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.1087, allocations: 19.88 kB / 414.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.332e-05/0.1088, allocations: 48.7 kB / 414.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.1093, allocations: 279.7 kB / 414.5 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.1093, allocations: 20.94 kB / 414.5 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.1093, allocations: 24.38 kB / 414.6 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005733/0.1099, allocations: 261.2 kB / 414.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1099, allocations: 4 kB / 414.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.11, allocations: 12 kB / 414.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.11, allocations: 8 kB / 414.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.1106, allocations: 218.1 kB / 415.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.1124, allocations: 0.968 MB / 416 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005985/0.113, allocations: 299.7 kB / 416.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.1133, allocations: 108.8 kB / 416.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.1133, allocations: 4 kB / 416.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.1133, allocations: 38.56 kB / 416.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.1133, allocations: 0 / 416.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001444/0.1148, allocations: 0.5688 MB / 417 MB, free: 13.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.1149, allocations: 55.41 kB / 417.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003224/0.1152, allocations: 258.6 kB / 417.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.1153, allocations: 25.7 kB / 417.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.1154, allocations: 192.2 kB / 417.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.1155, allocations: 75.38 kB / 417.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.601e-05/0.1156, allocations: 49.94 kB / 417.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.1158, allocations: 330.8 kB / 418 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.116, allocations: 76.42 kB / 418.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.1163, allocations: 109.1 kB / 418.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004304/0.1167, allocations: 187.1 kB / 418.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1167, allocations: 0 / 418.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000738/0.1175, allocations: 326.9 kB / 418.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1175, allocations: 8 kB / 418.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1175, allocations: 0 / 418.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003175/0.1178, allocations: 73.67 kB / 418.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.1181, allocations: 43.91 kB / 418.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/0.121, allocations: 3.056 MB / 421.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.1212, allocations: 27.83 kB / 421.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.1213, allocations: 8 kB / 421.9 MB, free: 8.398 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.000173/0.1215, allocations: 135.3 kB / 422 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.1215, allocations: 31.8 kB / 422.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.391e-05/0.1216, allocations: 30.17 kB / 422.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1216, allocations: 8.062 kB / 422.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.1216, allocations: 0 / 422.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1216, allocations: 7.922 kB / 422.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.1228, allocations: 0.6797 MB / 422.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1228, allocations: 0 / 422.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.1229, allocations: 31.91 kB / 422.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002119/0.1232, allocations: 69.67 kB / 422.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.1232, allocations: 8 kB / 422.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.126, allocations: 3.036 MB / 425.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.126, allocations: 0 / 425.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000747/0.1267, allocations: 383.7 kB / 426.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.1269, allocations: 108.9 kB / 426.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.1269, allocations: 8.188 kB / 426.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.1272, allocations: 35.97 kB / 426.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.987e-05/0.1273, allocations: 15.98 kB / 426.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.1273, allocations: 11.94 kB / 426.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.1275, allocations: 190 kB / 426.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1275, allocations: 3.938 kB / 426.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004104/0.1279, allocations: 95.89 kB / 426.8 MB, free: 3.125 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.0001562/0.1281, allocations: 111.6 kB / 426.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008769/0.129, allocations: 449.1 kB / 427.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.129, allocations: 0 / 427.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.1295, allocations: 344 kB / 427.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.1299, allocations: 60.58 kB / 427.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000957/0.1309, allocations: 0.5195 MB / 428.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.1314, allocations: 0.7678 MB / 429 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.667e-05/0.1315, allocations: 19.44 kB / 429 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1315, allocations: 0 / 429 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of Templates: time 0.2016/0.3331, allocations: 5.612 MB / 434.6 MB, free: 21.15 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.791550609981641]