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.001046/0.001047, allocations: 91.31 kB / 16.65 MB, free: 6.535 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.001204/0.001204, allocations: 174.6 kB / 17.56 MB, free: 6.184 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.622/1.622, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002944, allocations: 7.938 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1228, allocations: 50.41 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.0027/0.1256, allocations: 1.829 MB / 353.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.1268, allocations: 0.5378 MB / 354.2 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.1269, allocations: 0 / 354.2 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.1271, allocations: 19.92 kB / 354.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.1272, allocations: 39.67 kB / 354.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1275, allocations: 31.91 kB / 354.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.1277, allocations: 151.3 kB / 354.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.1279, allocations: 45.45 kB / 354.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.1281, allocations: 59.73 kB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.1282, allocations: 63.64 kB / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.1282, allocations: 4 kB / 354.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.941e-05/0.1283, allocations: 12 kB / 354.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.1284, allocations: 23.89 kB / 354.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.868e-05/0.1285, allocations: 89.38 kB / 354.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.1287, allocations: 151.7 kB / 354.9 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1287, allocations: 4 kB / 354.9 MB, free: 380 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1287, allocations: 0 / 354.9 MB, free: 380 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1287, allocations: 0 / 354.9 MB, free: 380 kB / 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.0006018/0.1293, allocations: 419.3 kB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1294, allocations: 8.031 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.1295, allocations: 16.75 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.1297, allocations: 208 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.1297, allocations: 12.59 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.1298, allocations: 8.375 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.13, allocations: 132.7 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1301, allocations: 0 / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.1301, allocations: 8 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1301, allocations: 0 / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.1303, allocations: 88.64 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.1313, allocations: 0.6017 MB / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.1316, allocations: 90.56 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/0.1318, allocations: 40.97 kB / 356.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.1318, allocations: 0 / 356.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1318, allocations: 30.56 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.22e-07/0.1318, allocations: 3.938 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007414/0.1326, allocations: 267.4 kB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.1326, allocations: 59.34 kB / 356.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.1328, allocations: 144.8 kB / 357 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.1328, allocations: 25.7 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.966e-05/0.1329, allocations: 131.9 kB / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1329, allocations: 15.75 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.1329, allocations: 17.7 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1331, allocations: 318.8 kB / 357.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.218e-05/0.1331, allocations: 23.98 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.154e-05/0.1332, allocations: 54.44 kB / 357.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001477/0.1334, allocations: 70.55 kB / 357.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1334, allocations: 4 kB / 357.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002968/0.1337, allocations: 142.2 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.1337, allocations: 8 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1337, allocations: 0 / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.1339, allocations: 33.09 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.894e-05/0.134, allocations: 16.05 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.136, allocations: 1.524 MB / 359.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.116e-05/0.1361, allocations: 7.938 kB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1361, allocations: 4 kB / 359.4 MB, free: 11.45 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.1363, allocations: 125.8 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.1363, allocations: 7.906 kB / 359.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.532e-05/0.1363, allocations: 16.78 kB / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1363, allocations: 3.938 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1364, allocations: 0 / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.1364, allocations: 4 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.1366, allocations: 209.6 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1366, allocations: 0 / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.138e-05/0.1367, allocations: 7.984 kB / 359.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/0.1368, allocations: 32.84 kB / 359.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.1368, allocations: 4.125 kB / 359.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.1382, allocations: 1.518 MB / 361.3 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1382, allocations: 0 / 361.3 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003365/0.1386, allocations: 224.2 kB / 361.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.948e-05/0.1386, allocations: 85 kB / 361.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.1387, allocations: 7.875 kB / 361.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.1388, allocations: 12.06 kB / 361.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.1388, allocations: 7.984 kB / 361.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.1388, allocations: 0 / 361.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.587e-05/0.1389, allocations: 107.3 kB / 361.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1389, allocations: 4 kB / 361.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003691/0.1393, allocations: 43.84 kB / 361.8 MB, free: 8.816 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001423/0.1395, allocations: 103.2 kB / 361.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004245/0.1399, allocations: 186.6 kB / 362 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1399, allocations: 192 / 362 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.1401, allocations: 154.8 kB / 362.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.1404, allocations: 21.05 kB / 362.2 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005578/0.141, allocations: 366.5 kB / 362.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.1413, allocations: 0.7121 MB / 363.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.462e-05/0.1414, allocations: 8.438 kB / 363.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/0.1414, allocations: 7.438 kB / 363.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1414, allocations: 0 / 363.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of Templates: time 0.004442/0.1458, allocations: 1.355 MB / 364.7 MB, free: 5.848 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches