Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009832/0.0009834, allocations: 99.3 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002655/0.0002657, allocations: 4 kB / 306.6 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1213, allocations: 51.5 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002453/0.1239, allocations: 1.738 MB / 359.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1249, allocations: 0.5615 MB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.125, allocations: 4 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.16e-05/0.1251, allocations: 11.91 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.1252, allocations: 47.84 kB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.1255, allocations: 35.95 kB / 360.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.1257, allocations: 103.8 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.1259, allocations: 53.42 kB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.1261, allocations: 47.8 kB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.1262, allocations: 59.75 kB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.1262, allocations: 8 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.393e-05/0.1263, allocations: 19.94 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.526e-05/0.1264, allocations: 23.91 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.029e-05/0.1264, allocations: 49.64 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.1266, allocations: 119.9 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1266, allocations: 0 / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1266, allocations: 0 / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1267, allocations: 0 / 360.9 MB, free: 11.04 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007437/0.1274, allocations: 427.1 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1275, allocations: 11.97 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.1277, allocations: 27.8 kB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.128, allocations: 198.9 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.128, allocations: 8.234 kB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.128, allocations: 15.95 kB / 361.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.1283, allocations: 115.5 kB / 361.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1283, allocations: 4 kB / 361.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.1284, allocations: 8 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1284, allocations: 4 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.1286, allocations: 80.66 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.1296, allocations: 0.6018 MB / 362.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.1299, allocations: 86.56 kB / 362.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.13, allocations: 3.984 kB / 362.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.13, allocations: 42.5 kB / 362.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.485e-06/0.13, allocations: 0 / 362.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007378/0.1308, allocations: 259.7 kB / 362.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.1309, allocations: 51.41 kB / 362.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.131, allocations: 148.2 kB / 363 MB, free: 8.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.131, allocations: 25.7 kB / 363 MB, free: 8.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.1311, allocations: 131.9 kB / 363.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.1312, allocations: 23.66 kB / 363.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-06/0.1312, allocations: 4 kB / 363.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1313, allocations: 322.8 kB / 363.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.939e-05/0.1314, allocations: 27.98 kB / 363.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.738e-05/0.1315, allocations: 46.5 kB / 363.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.689e-05/0.1316, allocations: 28 kB / 363.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.1316, allocations: 0 / 363.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002766/0.1319, allocations: 138.3 kB / 363.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1319, allocations: 4 kB / 363.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1319, allocations: 64 / 363.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.1321, allocations: 56.81 kB / 363.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.876e-05/0.1322, allocations: 8 kB / 363.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/0.1343, allocations: 1.506 MB / 365.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.806e-05/0.1344, allocations: 19.92 kB / 365.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.1344, allocations: 3.984 kB / 365.3 MB, free: 6.23 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 (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.0001213/0.1345, allocations: 129.9 kB / 365.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.1346, allocations: 11.81 kB / 365.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.607e-05/0.1346, allocations: 8.719 kB / 365.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1346, allocations: 4 kB / 365.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1346, allocations: 3.984 kB / 365.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1346, allocations: 0 / 365.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.1349, allocations: 209.6 kB / 365.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1349, allocations: 192 / 365.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.529e-05/0.1349, allocations: 4.125 kB / 365.7 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.1351, allocations: 52.7 kB / 365.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.1351, allocations: 4 kB / 365.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.1363, allocations: 1.51 MB / 367.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1363, allocations: 4.031 kB / 367.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.1366, allocations: 216.2 kB / 367.5 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.1367, allocations: 89.03 kB / 367.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.1367, allocations: 0 / 367.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.1368, allocations: 15.98 kB / 367.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.1369, allocations: 4 kB / 367.6 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.1369, allocations: 4.172 kB / 367.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001019/0.137, allocations: 109.5 kB / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.137, allocations: 0 / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000388/0.1374, allocations: 39.84 kB / 367.7 MB, free: 3.598 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 (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.0001381/0.1375, allocations: 106.5 kB / 367.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003771/0.1379, allocations: 198.5 kB / 368 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1379, allocations: 0 / 368 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.1381, allocations: 162.7 kB / 368.2 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.1383, allocations: 4 kB / 368.2 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005747/0.1389, allocations: 354.3 kB / 368.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.1393, allocations: 0.7234 MB / 369.3 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.444e-05/0.1393, allocations: 8.422 kB / 369.3 MB, free: 1.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.101e-05/0.1393, allocations: 11.44 kB / 369.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1393, allocations: 0 / 369.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of Templates: time 0.003997/0.1433, allocations: 1.295 MB / 370.6 MB, free: 0.6797 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches