Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 107.4 kB / 17.16 MB, free: 6.309 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.001421/0.001421, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002052, allocations: 51.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1151, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.004268/0.1194, allocations: 2.184 MB / 328.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.1207, allocations: 0.4957 MB / 329.3 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.121, allocations: 3.938 kB / 329.3 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.1212, allocations: 19.84 kB / 329.3 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.1214, allocations: 43.67 kB / 329.3 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.1217, allocations: 27.92 kB / 329.4 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.1219, allocations: 147.3 kB / 329.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1221, allocations: 49.45 kB / 329.6 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.1224, allocations: 59.72 kB / 329.6 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.1225, allocations: 59.77 kB / 329.7 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1225, allocations: 11.94 kB / 329.7 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.81e-05/0.1226, allocations: 12 kB / 329.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.529e-05/0.1227, allocations: 31.84 kB / 329.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.573e-05/0.1228, allocations: 63.67 kB / 329.8 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.123, allocations: 163.7 kB / 330 MB, free: 1.5 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.123, allocations: 0 / 330 MB, free: 1.5 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.123, allocations: 0 / 330 MB, free: 1.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.123, allocations: 4 kB / 330 MB, free: 1.496 MB / 270.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.0007094/0.1237, allocations: 443.1 kB / 330.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1238, allocations: 8.031 kB / 330.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.1239, allocations: 20.73 kB / 330.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.1242, allocations: 196.2 kB / 330.6 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.1242, allocations: 8.609 kB / 330.6 MB, free: 0.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.1243, allocations: 12.38 kB / 330.6 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.1245, allocations: 127.8 kB / 330.8 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1246, allocations: 0 / 330.8 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1246, allocations: 4 kB / 330.8 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1246, allocations: 4 kB / 330.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.1248, allocations: 76.66 kB / 330.8 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009823/0.1258, allocations: 0.6166 MB / 331.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.1261, allocations: 82.62 kB / 331.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.515e-05/0.1262, allocations: 28.98 kB / 331.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.1262, allocations: 3.984 kB / 331.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.1263, allocations: 38.5 kB / 331.6 MB, free: 15.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.1263, allocations: 0 / 331.6 MB, free: 15.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007543/0.127, allocations: 259.4 kB / 331.9 MB, free: 15.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.1271, allocations: 55.34 kB / 331.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.1273, allocations: 149.5 kB / 332.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.1273, allocations: 29.7 kB / 332.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.811e-05/0.1274, allocations: 124 kB / 332.2 MB, free: 14.99 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.1274, allocations: 23.66 kB / 332.2 MB, free: 14.97 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.1275, allocations: 21.7 kB / 332.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1276, allocations: 326.8 kB / 332.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.803e-05/0.1277, allocations: 20 kB / 332.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.791e-05/0.1278, allocations: 46.48 kB / 332.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.1279, allocations: 66.5 kB / 332.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1279, allocations: 4 kB / 332.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00031/0.1282, allocations: 134.3 kB / 332.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.1283, allocations: 8 kB / 332.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1283, allocations: 0 / 332.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/0.1285, allocations: 40.77 kB / 332.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.953e-05/0.1286, allocations: 8 kB / 332.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.1303, allocations: 1.526 MB / 334.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.263e-05/0.1304, allocations: 15.83 kB / 334.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.1304, allocations: 0 / 334.4 MB, free: 12.59 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 (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.0001303/0.1306, allocations: 121.8 kB / 334.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.1306, allocations: 7.906 kB / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.1306, allocations: 16.72 kB / 334.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.1306, allocations: 3.938 kB / 334.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1307, allocations: 7.984 kB / 334.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1307, allocations: 0 / 334.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.1309, allocations: 205.6 kB / 334.8 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1309, allocations: 4 kB / 334.8 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.572e-05/0.131, allocations: 0 / 334.8 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001311/0.1311, allocations: 44.77 kB / 334.8 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.1311, allocations: 0 / 334.8 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001402/0.1325, allocations: 1.502 MB / 336.3 MB, free: 10.49 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1326, allocations: 4.031 kB / 336.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000334/0.1329, allocations: 220.2 kB / 336.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.1329, allocations: 81.02 kB / 336.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.133, allocations: 7.938 kB / 336.6 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.988e-05/0.1331, allocations: 7.906 kB / 336.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.1331, allocations: 11.98 kB / 336.7 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.1332, allocations: 4 kB / 336.7 MB, free: 10.12 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.037e-05/0.1332, allocations: 107.2 kB / 336.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1332, allocations: 0 / 336.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003541/0.1336, allocations: 39.94 kB / 336.8 MB, free: 9.977 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 (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.0001197/0.1337, allocations: 99.25 kB / 336.9 MB, free: 9.871 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.1342, allocations: 190.6 kB / 337.1 MB, free: 9.672 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1342, allocations: 4 kB / 337.1 MB, free: 9.668 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.1344, allocations: 154.7 kB / 337.3 MB, free: 9.504 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.1347, allocations: 8.047 kB / 337.3 MB, free: 9.496 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005966/0.1353, allocations: 342.8 kB / 337.6 MB, free: 9.137 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.1356, allocations: 0.7157 MB / 338.3 MB, free: 8.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.404e-05/0.1356, allocations: 448 / 338.3 MB, free: 8.395 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.73e-05/0.1357, allocations: 11.44 kB / 338.3 MB, free: 8.383 MB / 286.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1357, allocations: 0 / 338.3 MB, free: 8.383 MB / 286.1 MB Notification: Performance of Templates: time 0.004146/0.1398, allocations: 1.379 MB / 339.7 MB, free: 7.004 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches