Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.0009397/0.0009397, allocations: 193.3 kB / 18.2 MB, free: 5.301 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.613/1.613, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001527/0.001528, allocations: 47.92 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.119, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003954/0.123, allocations: 2.511 MB / 329.3 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.1242, allocations: 0.6751 MB / 330 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1244, allocations: 0 / 330 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.1246, allocations: 27.77 kB / 330 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1247, allocations: 59.47 kB / 330.1 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.125, allocations: 71.86 kB / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002796/0.1253, allocations: 270.8 kB / 330.4 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001944/0.1255, allocations: 80.34 kB / 330.5 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.1257, allocations: 115.5 kB / 330.6 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.1258, allocations: 115.5 kB / 330.7 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.1259, allocations: 20 kB / 330.7 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.775e-05/0.126, allocations: 39.98 kB / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.659e-05/0.1261, allocations: 47.84 kB / 330.8 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1262, allocations: 123.4 kB / 330.9 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.1265, allocations: 275.3 kB / 331.2 MB, free: 368 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1265, allocations: 0 / 331.2 MB, free: 368 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1265, allocations: 0 / 331.2 MB, free: 368 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1265, allocations: 0 / 331.2 MB, free: 368 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008183/0.1273, allocations: 0.5224 MB / 331.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1274, allocations: 8.031 kB / 331.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.503e-05/0.1275, allocations: 32.66 kB / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1278, allocations: 236.5 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.1278, allocations: 20.8 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-05/0.1279, allocations: 24.38 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.1283, allocations: 191.2 kB / 332.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.1283, allocations: 0 / 332.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.1284, allocations: 12 kB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1284, allocations: 11.94 kB / 332.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003261/0.1287, allocations: 145.7 kB / 332.4 MB, free: 15.07 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.1302, allocations: 0.9412 MB / 333.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.1305, allocations: 154.6 kB / 333.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.1307, allocations: 92.83 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.1308, allocations: 0 / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.1308, allocations: 38.56 kB / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 3.136e-06/0.1308, allocations: 0 / 333.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001258/0.1321, allocations: 430.7 kB / 334 MB, free: 13.28 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1322, allocations: 51.41 kB / 334.1 MB, free: 13.22 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.1323, allocations: 174.4 kB / 334.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1323, allocations: 29.7 kB / 334.3 MB, free: 13 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.76e-05/0.1324, allocations: 140.1 kB / 334.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.801e-05/0.1325, allocations: 63.09 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.494e-05/0.1326, allocations: 37.7 kB / 334.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1327, allocations: 334.8 kB / 334.8 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1328, allocations: 51.92 kB / 334.9 MB, free: 12.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.1329, allocations: 69.67 kB / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002142/0.1332, allocations: 125.7 kB / 335.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1332, allocations: 0 / 335.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003812/0.1336, allocations: 222.2 kB / 335.3 MB, free: 11.94 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1336, allocations: 11.88 kB / 335.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1336, allocations: 3.984 kB / 335.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/0.135, allocations: 216.6 kB / 335.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.1352, allocations: 27.98 kB / 335.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004822/0.1357, allocations: 0.6147 MB / 336.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.1358, allocations: 11.94 kB / 336.2 MB, free: 11.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.1358, allocations: 4 kB / 336.2 MB, free: 11.03 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 13 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.1359, allocations: 133.8 kB / 336.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.309e-05/0.136, allocations: 23.81 kB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004353/0.1364, allocations: 228.2 kB / 336.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1365, allocations: 0 / 336.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1365, allocations: 7.938 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1365, allocations: 3.984 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008016/0.1373, allocations: 0.5935 MB / 337.2 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1373, allocations: 0 / 337.2 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.1375, allocations: 31.92 kB / 337.2 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.1385, allocations: 204.7 kB / 337.4 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.1386, allocations: 0 / 337.4 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004423/0.139, allocations: 0.6264 MB / 338 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.139, allocations: 0 / 338 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007707/0.1398, allocations: 425.1 kB / 338.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.974e-05/0.1399, allocations: 100.9 kB / 338.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.1399, allocations: 0 / 338.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.1401, allocations: 15.98 kB / 338.5 MB, free: 8.504 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.1401, allocations: 12.14 kB / 338.5 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.1402, allocations: 11.94 kB / 338.6 MB, free: 8.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.1403, allocations: 127.2 kB / 338.7 MB, free: 8.355 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1403, allocations: 0 / 338.7 MB, free: 8.355 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000313/0.1406, allocations: 59.84 kB / 338.7 MB, free: 8.297 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (10): * Single equations (assignments): 9 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001986/0.1408, allocations: 107.2 kB / 338.8 MB, free: 8.184 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.1413, allocations: 156 kB / 339 MB, free: 8.031 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1413, allocations: 0 / 339 MB, free: 8.031 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.1415, allocations: 95.75 kB / 339.1 MB, free: 7.938 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.1419, allocations: 23.92 kB / 339.1 MB, free: 7.914 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.1431, allocations: 0.6263 MB / 339.7 MB, free: 7.258 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.1438, allocations: 0.7438 MB / 340.5 MB, free: 6.488 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.256e-05/0.1439, allocations: 9.562 kB / 340.5 MB, free: 6.48 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.813e-05/0.1439, allocations: 15.44 kB / 340.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1439, allocations: 0 / 340.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of Templates: time 0.00638/0.1503, allocations: 2.504 MB / 343 MB, free: 3.969 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches