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.001351/0.001351, allocations: 108.7 kB / 17.93 MB, free: 5.547 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.001497/0.001497, allocations: 197.8 kB / 18.86 MB, free: 4.625 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.457/1.457, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001223/0.001223, allocations: 59.92 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1068, allocations: 46.62 MB / 327.4 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00387/0.1107, allocations: 2.52 MB / 329.9 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1119, allocations: 0.6711 MB / 330.6 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.1121, allocations: 4 kB / 330.6 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.1123, allocations: 27.77 kB / 330.6 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.1124, allocations: 63.47 kB / 330.7 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.1127, allocations: 59.92 kB / 330.8 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.1131, allocations: 270.8 kB / 331 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.1133, allocations: 84.34 kB / 331.1 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.1135, allocations: 115.5 kB / 331.2 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.1136, allocations: 111.5 kB / 331.3 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.62e-05/0.1137, allocations: 24 kB / 331.4 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.1138, allocations: 39.98 kB / 331.4 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.749e-05/0.1138, allocations: 47.83 kB / 331.4 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.1139, allocations: 127.4 kB / 331.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.1142, allocations: 207.7 kB / 331.8 MB, free: 436 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1142, allocations: 0 / 331.8 MB, free: 436 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1142, allocations: 0 / 331.8 MB, free: 436 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1142, allocations: 0 / 331.8 MB, free: 436 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.0008714/0.1151, allocations: 0.5302 MB / 332.3 MB, free: 15.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1152, allocations: 8.031 kB / 332.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.1152, allocations: 28.66 kB / 332.3 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.1155, allocations: 236.5 kB / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.1155, allocations: 16.81 kB / 332.6 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.1156, allocations: 24.38 kB / 332.6 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00036/0.116, allocations: 187.2 kB / 332.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.116, allocations: 0 / 332.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.116, allocations: 16 kB / 332.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.116, allocations: 4 kB / 332.8 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.1163, allocations: 145.7 kB / 333 MB, free: 15.15 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.001324/0.1177, allocations: 0.9412 MB / 333.9 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.118, allocations: 154.6 kB / 334 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.1182, allocations: 92.83 kB / 334.1 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.1182, allocations: 3.984 kB / 334.1 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1183, allocations: 34.56 kB / 334.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 2.665e-06/0.1183, allocations: 4 kB / 334.2 MB, free: 13.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.00125/0.1195, allocations: 422.4 kB / 334.6 MB, free: 13.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.1196, allocations: 55.34 kB / 334.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.1198, allocations: 174.4 kB / 334.8 MB, free: 13.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.1198, allocations: 33.7 kB / 334.9 MB, free: 13.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.1199, allocations: 140.1 kB / 335 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.12, allocations: 67.09 kB / 335.1 MB, free: 12.87 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.12, allocations: 37.7 kB / 335.1 MB, free: 12.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1201, allocations: 330.8 kB / 335.4 MB, free: 12.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.1203, allocations: 47.97 kB / 335.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.1204, allocations: 69.69 kB / 335.5 MB, free: 12.37 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.1206, allocations: 121.7 kB / 335.6 MB, free: 12.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1206, allocations: 4 kB / 335.7 MB, free: 12.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003929/0.121, allocations: 234.1 kB / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1211, allocations: 7.938 kB / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1211, allocations: 0 / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.1224, allocations: 220.6 kB / 336.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.1226, allocations: 31.97 kB / 336.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004871/0.1231, allocations: 0.6031 MB / 336.7 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.1232, allocations: 15.84 kB / 336.8 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.1233, allocations: 8.062 kB / 336.8 MB, free: 11.09 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.000125/0.1234, allocations: 137.8 kB / 336.9 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/0.1234, allocations: 15.81 kB / 336.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000444/0.1239, allocations: 228.2 kB / 337.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1239, allocations: 0 / 337.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1239, allocations: 0 / 337.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1239, allocations: 8 kB / 337.1 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008275/0.1248, allocations: 0.5896 MB / 337.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1248, allocations: 3.984 kB / 337.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.1249, allocations: 23.98 kB / 337.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.126, allocations: 216.6 kB / 338 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.1261, allocations: 0 / 338 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004545/0.1265, allocations: 0.6186 MB / 338.6 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.1265, allocations: 0 / 338.6 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007787/0.1273, allocations: 428.7 kB / 339 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.1274, allocations: 104.9 kB / 339.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.1274, allocations: 0 / 339.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.1276, allocations: 12.06 kB / 339.1 MB, free: 8.578 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.1277, allocations: 11.98 kB / 339.1 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1277, allocations: 8 kB / 339.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.45e-05/0.1278, allocations: 127.2 kB / 339.3 MB, free: 8.434 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1278, allocations: 0 / 339.3 MB, free: 8.434 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.1281, allocations: 59.94 kB / 339.3 MB, free: 8.375 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.0001681/0.1283, allocations: 111.1 kB / 339.4 MB, free: 8.258 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004055/0.1287, allocations: 155.9 kB / 339.6 MB, free: 8.105 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1287, allocations: 0 / 339.6 MB, free: 8.105 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.1289, allocations: 95.73 kB / 339.7 MB, free: 8.012 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.1293, allocations: 32.78 kB / 339.7 MB, free: 7.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.1304, allocations: 0.6508 MB / 340.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.1308, allocations: 0.7321 MB / 341.1 MB, free: 6.539 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.813e-05/0.1308, allocations: 15.44 kB / 341.1 MB, free: 6.523 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1308, allocations: 4 kB / 341.1 MB, free: 6.52 MB / 286.1 MB Notification: Performance of Templates: time 0.005152/0.136, allocations: 3.051 MB / 344.2 MB, free: 3.461 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/jenkins1/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