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.001617/0.001617, allocations: 109.1 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00243/0.00243, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 64.27 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1197, allocations: 50.54 MB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004252/0.124, allocations: 2.2 MB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.1253, allocations: 0.6079 MB / 359.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.1254, allocations: 4 kB / 359.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1256, allocations: 15.86 kB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.1258, allocations: 39.69 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.1261, allocations: 47.89 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.1263, allocations: 163.2 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1265, allocations: 53.45 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.1267, allocations: 67.77 kB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.1268, allocations: 67.7 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.1268, allocations: 12 kB / 360.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.273e-05/0.1269, allocations: 20 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.552e-05/0.127, allocations: 35.84 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.21e-05/0.1271, allocations: 67.67 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.1273, allocations: 171.7 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.1273, allocations: 0 / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1273, allocations: 4 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1273, allocations: 0 / 360.5 MB, free: 10.81 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.0006424/0.128, allocations: 443.1 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.128, allocations: 11.97 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.1283, allocations: 28.73 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.1285, allocations: 204.1 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1285, allocations: 8.609 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.1286, allocations: 12.38 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.1288, allocations: 123.8 kB / 361.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.1288, allocations: 4 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.1289, allocations: 4 kB / 361.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1289, allocations: 4 kB / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.1291, allocations: 76.67 kB / 361.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008988/0.13, allocations: 0.6018 MB / 362 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.1303, allocations: 90.56 kB / 362.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.004e-05/0.1304, allocations: 36.97 kB / 362.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.1304, allocations: 3.938 kB / 362.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.1304, allocations: 30.56 kB / 362.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.173e-06/0.1304, allocations: 0 / 362.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007187/0.1312, allocations: 255.4 kB / 362.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.1312, allocations: 55.34 kB / 362.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.1314, allocations: 152 kB / 362.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1314, allocations: 29.64 kB / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.148e-05/0.1315, allocations: 131.9 kB / 362.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.1315, allocations: 19.75 kB / 362.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.1316, allocations: 25.62 kB / 362.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1317, allocations: 322.8 kB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.1318, allocations: 23.98 kB / 363.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.583e-05/0.1319, allocations: 46.5 kB / 363.2 MB, free: 7.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.132, allocations: 70.53 kB / 363.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.132, allocations: 4 kB / 363.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002787/0.1323, allocations: 138.2 kB / 363.4 MB, free: 7.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1323, allocations: 4 kB / 363.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1323, allocations: 0 / 363.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001933/0.1325, allocations: 40.91 kB / 363.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.379e-05/0.1326, allocations: 7.984 kB / 363.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.1343, allocations: 1.686 MB / 365.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.731e-05/0.1344, allocations: 19.95 kB / 365.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1344, allocations: 7.938 kB / 365.2 MB, free: 5.699 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.0001006/0.1345, allocations: 121.8 kB / 365.3 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.1345, allocations: 11.91 kB / 365.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.347e-05/0.1346, allocations: 8.719 kB / 365.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1346, allocations: 0 / 365.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.1346, allocations: 4 kB / 365.4 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1346, allocations: 3.984 kB / 365.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1348, allocations: 209.7 kB / 365.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1348, allocations: 4 kB / 365.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.629e-05/0.1349, allocations: 11.94 kB / 365.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.135, allocations: 32.83 kB / 365.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.135, allocations: 4 kB / 365.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.1363, allocations: 1.685 MB / 367.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1363, allocations: 0 / 367.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002896/0.1366, allocations: 216.2 kB / 367.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.1367, allocations: 81.02 kB / 367.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.1367, allocations: 4 kB / 367.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1368, allocations: 12.05 kB / 367.6 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.1369, allocations: 7.984 kB / 367.6 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.1369, allocations: 4 kB / 367.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.459e-05/0.137, allocations: 114.7 kB / 367.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.137, allocations: 4 kB / 367.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.1373, allocations: 43.84 kB / 367.8 MB, free: 2.898 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.0001462/0.1375, allocations: 103 kB / 367.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004081/0.1379, allocations: 194.6 kB / 368.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1379, allocations: 0 / 368.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.1381, allocations: 158.7 kB / 368.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.1384, allocations: 18.59 kB / 368.2 MB, free: 2.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005834/0.139, allocations: 336.1 kB / 368.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.1392, allocations: 0.7041 MB / 369.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.754e-05/0.1393, allocations: 12.45 kB / 369.3 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.402e-05/0.1393, allocations: 11.44 kB / 369.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1393, allocations: 4 kB / 369.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of Templates: time 0.1834/0.3227, allocations: 1.456 MB / 370.8 MB, free: 19.55 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches