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.001481/0.001481, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001692/0.001692, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 59.81 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1207, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003498/0.1243, allocations: 2.144 MB / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.1253, allocations: 0.6156 MB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.463e-05/0.1254, allocations: 4 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.1256, allocations: 23.8 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.1258, allocations: 47.55 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.1261, allocations: 51.88 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.1263, allocations: 159.2 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.1265, allocations: 57.44 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.1267, allocations: 71.73 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.1268, allocations: 67.69 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.1269, allocations: 12 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.33e-05/0.1269, allocations: 23.98 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.883e-05/0.127, allocations: 31.86 kB / 362.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.1271, allocations: 71.61 kB / 362.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.1273, allocations: 171.4 kB / 362.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1273, allocations: 0 / 362.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1273, allocations: 0 / 362.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1273, allocations: 0 / 362.4 MB, free: 9.758 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.0005937/0.1279, allocations: 447.1 kB / 362.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.128, allocations: 8.031 kB / 362.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.1282, allocations: 32.73 kB / 362.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.1285, allocations: 208 kB / 363.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.1285, allocations: 8.609 kB / 363.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.219e-05/0.1285, allocations: 16.36 kB / 363.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.1288, allocations: 129.5 kB / 363.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.1288, allocations: 0 / 363.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.1288, allocations: 0 / 363.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1288, allocations: 4 kB / 363.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.129, allocations: 80.66 kB / 363.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008459/0.1299, allocations: 0.5978 MB / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.1302, allocations: 86.62 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.057e-05/0.1303, allocations: 28.98 kB / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.1303, allocations: 3.984 kB / 364.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.1303, allocations: 34.56 kB / 364.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.1303, allocations: 0 / 364.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006624/0.131, allocations: 251.4 kB / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.131, allocations: 59.34 kB / 364.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.1312, allocations: 157.3 kB / 364.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1312, allocations: 29.64 kB / 364.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/0.1313, allocations: 131.8 kB / 364.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.1313, allocations: 23.73 kB / 364.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.144e-05/0.1314, allocations: 21.62 kB / 364.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.1315, allocations: 322.8 kB / 365.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.164e-05/0.1315, allocations: 19.98 kB / 365.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.357e-05/0.1316, allocations: 50.5 kB / 365.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.1318, allocations: 66.5 kB / 365.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1318, allocations: 0 / 365.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002669/0.132, allocations: 138.3 kB / 365.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1321, allocations: 8 kB / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1321, allocations: 0 / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.1323, allocations: 36.83 kB / 365.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.131e-05/0.1323, allocations: 15.92 kB / 365.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.1339, allocations: 1.69 MB / 367.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.993e-05/0.134, allocations: 11.91 kB / 367.1 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.134, allocations: 4 kB / 367.1 MB, free: 4.652 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.0001069/0.1341, allocations: 125.7 kB / 367.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.1341, allocations: 7.906 kB / 367.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.873e-05/0.1342, allocations: 20.7 kB / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1342, allocations: 0 / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.1342, allocations: 0 / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1342, allocations: 0 / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.1344, allocations: 213.5 kB / 367.5 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1344, allocations: 0 / 367.5 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-05/0.1345, allocations: 4 kB / 367.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.1346, allocations: 36.83 kB / 367.5 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.1346, allocations: 4 kB / 367.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.136, allocations: 1.678 MB / 369.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.136, allocations: 0 / 369.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.1363, allocations: 220.2 kB / 369.4 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.609e-05/0.1364, allocations: 93 kB / 369.5 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1364, allocations: 0 / 369.5 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.1365, allocations: 4 kB / 369.5 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.1365, allocations: 11.97 kB / 369.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.1365, allocations: 3.984 kB / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.191e-05/0.1366, allocations: 119.2 kB / 369.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1366, allocations: 3.938 kB / 369.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004542/0.1371, allocations: 39.84 kB / 369.7 MB, free: 1.848 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.0001314/0.1372, allocations: 102.2 kB / 369.8 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1376, allocations: 182.6 kB / 369.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1377, allocations: 4.125 kB / 369.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.1379, allocations: 162.8 kB / 370.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.1381, allocations: 15.94 kB / 370.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005522/0.1387, allocations: 295.3 kB / 370.4 MB, free: 1.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.139, allocations: 0.7118 MB / 371.1 MB, free: 316 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.872e-05/0.139, allocations: 4.438 kB / 371.1 MB, free: 312 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.341e-05/0.139, allocations: 7.438 kB / 371.1 MB, free: 304 kB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1391, allocations: 4 kB / 371.1 MB, free: 300 kB / 302.1 MB Notification: Performance of Templates: time 0.2081/0.3472, allocations: 1.486 MB / 372.6 MB, free: 19.26 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches