Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001152/0.001152, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.00114/0.00114, allocations: 198 kB / 18.07 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 55.92 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1112, allocations: 46.62 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003855/0.1151, allocations: 3.005 MB / 329.6 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1163, allocations: 0.7215 MB / 330.3 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.1165, allocations: 4 kB / 330.3 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.1167, allocations: 43.62 kB / 330.4 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.1168, allocations: 87.3 kB / 330.5 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.1171, allocations: 79.86 kB / 330.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.1175, allocations: 390.2 kB / 330.9 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.1177, allocations: 87.69 kB / 331 MB, free: 476 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.1178, allocations: 139.5 kB / 331.1 MB, free: 336 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.118, allocations: 155.3 kB / 331.3 MB, free: 180 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.1181, allocations: 20 kB / 331.3 MB, free: 160 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.116e-05/0.1181, allocations: 24 kB / 331.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.279e-05/0.1182, allocations: 71.62 kB / 331.4 MB, free: 64 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.1184, allocations: 159.3 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003247/0.1187, allocations: 370.8 kB / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1187, allocations: 0 / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1187, allocations: 3.938 kB / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1187, allocations: 0 / 331.9 MB, free: 15.54 MB / 286.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.001004/0.1197, allocations: 0.6314 MB / 332.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1198, allocations: 8.031 kB / 332.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.378e-05/0.1199, allocations: 36.56 kB / 332.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.1202, allocations: 283.5 kB / 332.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.1202, allocations: 24.92 kB / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.1203, allocations: 24.38 kB / 332.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005278/0.1208, allocations: 261.2 kB / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1208, allocations: 0 / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.1209, allocations: 16 kB / 333.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1209, allocations: 11.98 kB / 333.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004825/0.1214, allocations: 214.1 kB / 333.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.1229, allocations: 0.9716 MB / 334.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005264/0.1235, allocations: 299.8 kB / 334.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.1237, allocations: 108.8 kB / 334.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.1237, allocations: 11.92 kB / 334.8 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.1238, allocations: 34.56 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.1238, allocations: 0 / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001302/0.1251, allocations: 0.5558 MB / 335.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.1251, allocations: 59.41 kB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.1254, allocations: 254.6 kB / 335.7 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.1254, allocations: 33.7 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1256, allocations: 179.9 kB / 335.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.199e-05/0.1256, allocations: 67.02 kB / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.433e-05/0.1257, allocations: 45.84 kB / 336 MB, free: 11.15 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1259, allocations: 334.8 kB / 336.3 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1261, allocations: 80.42 kB / 336.4 MB, free: 10.74 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1263, allocations: 107.4 kB / 336.5 MB, free: 10.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003868/0.1267, allocations: 194.3 kB / 336.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1267, allocations: 4 kB / 336.7 MB, free: 10.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006384/0.1273, allocations: 318.7 kB / 337 MB, free: 10.1 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1274, allocations: 8 kB / 337 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1274, allocations: 0 / 337 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.1277, allocations: 77.73 kB / 337.1 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.1279, allocations: 39.91 kB / 337.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/0.1301, allocations: 2.831 MB / 340 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.1303, allocations: 31.95 kB / 340 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.1303, allocations: 8 kB / 340 MB, free: 6.832 MB / 286.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.0001449/0.1305, allocations: 133.8 kB / 340.1 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.1305, allocations: 31.66 kB / 340.2 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.491e-05/0.1306, allocations: 30.17 kB / 340.2 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1306, allocations: 4 kB / 340.2 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1306, allocations: 7.938 kB / 340.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1306, allocations: 0 / 340.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000979/0.1316, allocations: 0.6793 MB / 340.9 MB, free: 5.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1316, allocations: 4 kB / 340.9 MB, free: 5.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.1318, allocations: 23.98 kB / 340.9 MB, free: 5.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.132, allocations: 81.53 kB / 341 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.132, allocations: 8 kB / 341 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.134, allocations: 2.823 MB / 343.8 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.134, allocations: 0 / 343.8 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/0.1346, allocations: 389.5 kB / 344.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.78e-05/0.1347, allocations: 108.8 kB / 344.3 MB, free: 2.145 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.1347, allocations: 4 kB / 344.3 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.135, allocations: 27.98 kB / 344.4 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.1351, allocations: 23.91 kB / 344.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.1351, allocations: 8 kB / 344.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001694/0.1353, allocations: 190 kB / 344.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1353, allocations: 0 / 344.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003781/0.1357, allocations: 91.84 kB / 344.7 MB, free: 1.805 MB / 286.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.0001357/0.1358, allocations: 107.2 kB / 344.8 MB, free: 1.688 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007278/0.1365, allocations: 445.1 kB / 345.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1366, allocations: 0 / 345.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003981/0.137, allocations: 349.3 kB / 345.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.1374, allocations: 48.47 kB / 345.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008792/0.1383, allocations: 0.6051 MB / 346.2 MB, free: 188 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1387, allocations: 0.7639 MB / 347 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.1388, allocations: 26.28 kB / 347 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.1389, allocations: 19.44 kB / 347 MB, free: 15.35 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1389, allocations: 4 kB / 347 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Templates: time 0.006964/0.1459, allocations: 3.466 MB / 350.5 MB, free: 11.89 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches