Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.001261/0.001261, allocations: 181 kB / 17.2 MB, free: 5.91 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.474/1.474, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002693, allocations: 12.03 kB / 300.7 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 50.41 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002466/0.1198, allocations: 1.735 MB / 352.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000905/0.1207, allocations: 0.5185 MB / 353.4 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.295e-05/0.1208, allocations: 4 kB / 353.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.294e-05/0.1209, allocations: 15.91 kB / 353.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.121, allocations: 43.84 kB / 353.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.1212, allocations: 31.97 kB / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.1214, allocations: 107.8 kB / 353.6 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1216, allocations: 41.45 kB / 353.6 MB, free: 9.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.1217, allocations: 59.72 kB / 353.7 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1218, allocations: 55.77 kB / 353.7 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.1218, allocations: 8 kB / 353.7 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.541e-05/0.1219, allocations: 8 kB / 353.7 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.616e-05/0.122, allocations: 23.86 kB / 353.8 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.641e-05/0.122, allocations: 49.64 kB / 353.8 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.1222, allocations: 119.7 kB / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1222, allocations: 0 / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.1222, allocations: 0 / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1222, allocations: 3.938 kB / 353.9 MB, free: 8.859 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006338/0.1229, allocations: 423.1 kB / 354.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1229, allocations: 12.03 kB / 354.4 MB, free: 8.383 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.123, allocations: 19.77 kB / 354.4 MB, free: 8.363 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.1233, allocations: 205 kB / 354.6 MB, free: 8.125 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.1233, allocations: 8.234 kB / 354.6 MB, free: 8.117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.1233, allocations: 8 kB / 354.6 MB, free: 8.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.1236, allocations: 127.4 kB / 354.7 MB, free: 7.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1236, allocations: 0 / 354.7 MB, free: 7.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.1236, allocations: 8 kB / 354.7 MB, free: 7.973 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.1236, allocations: 7.953 kB / 354.7 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.1238, allocations: 76.67 kB / 354.8 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008691/0.1247, allocations: 0.6018 MB / 355.4 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.125, allocations: 94.56 kB / 355.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.125, allocations: 0 / 355.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.1251, allocations: 34.56 kB / 355.5 MB, free: 7.066 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.1251, allocations: 0 / 355.5 MB, free: 7.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007134/0.1258, allocations: 263.5 kB / 355.8 MB, free: 6.781 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.1258, allocations: 55.39 kB / 355.9 MB, free: 6.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.126, allocations: 144.8 kB / 356 MB, free: 6.566 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.126, allocations: 29.7 kB / 356 MB, free: 6.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.1261, allocations: 127.9 kB / 356.2 MB, free: 6.398 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.1261, allocations: 19.64 kB / 356.2 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-06/0.1261, allocations: 4 kB / 356.2 MB, free: 6.375 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1263, allocations: 322.8 kB / 356.5 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.552e-05/0.1263, allocations: 24 kB / 356.5 MB, free: 6.027 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.378e-05/0.1264, allocations: 54.48 kB / 356.6 MB, free: 5.965 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.748e-05/0.1265, allocations: 20 kB / 356.6 MB, free: 5.945 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1265, allocations: 4 kB / 356.6 MB, free: 5.941 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002771/0.1268, allocations: 134.3 kB / 356.7 MB, free: 5.801 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1268, allocations: 12.06 kB / 356.7 MB, free: 5.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.1269, allocations: 192 / 356.7 MB, free: 5.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001965/0.1271, allocations: 36.78 kB / 356.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.877e-05/0.1271, allocations: 20.12 kB / 356.8 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.1287, allocations: 1.522 MB / 358.3 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.388e-05/0.1288, allocations: 4.062 kB / 358.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.1288, allocations: 8 kB / 358.3 MB, free: 4.055 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.1289, allocations: 125.8 kB / 358.4 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.129, allocations: 15.77 kB / 358.5 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.129, allocations: 12.72 kB / 358.5 MB, free: 3.895 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.129, allocations: 4 kB / 358.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.129, allocations: 0 / 358.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.129, allocations: 0 / 358.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.1292, allocations: 209.5 kB / 358.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1293, allocations: 4 kB / 358.7 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.079e-05/0.1293, allocations: 7.984 kB / 358.7 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.1294, allocations: 40.73 kB / 358.7 MB, free: 3.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1295, allocations: 4.125 kB / 358.7 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.1308, allocations: 1.511 MB / 360.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1309, allocations: 32 / 360.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.1312, allocations: 228.2 kB / 360.5 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.1313, allocations: 81.02 kB / 360.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.1313, allocations: 0 / 360.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1314, allocations: 11.94 kB / 360.6 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.1315, allocations: 15.94 kB / 360.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.1315, allocations: 0 / 360.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.096e-05/0.1316, allocations: 111.2 kB / 360.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1316, allocations: 3.938 kB / 360.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.1319, allocations: 39.91 kB / 360.7 MB, free: 1.414 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001724/0.1321, allocations: 95.25 kB / 360.8 MB, free: 1.312 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004304/0.1326, allocations: 194.7 kB / 361 MB, free: 1.109 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1326, allocations: 0 / 361 MB, free: 1.109 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.1328, allocations: 154.6 kB / 361.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.133, allocations: 8 kB / 361.2 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000626/0.1337, allocations: 362.5 kB / 361.5 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.1341, allocations: 0.7121 MB / 362.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.372e-05/0.1341, allocations: 4.438 kB / 362.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.113e-05/0.1342, allocations: 15.42 kB / 362.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1342, allocations: 0 / 362.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of Templates: time 0.004342/0.1385, allocations: 1.307 MB / 363.6 MB, free: 14.5 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches