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.001088/0.001088, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001218/0.001218, allocations: 192 kB / 18.51 MB, free: 4.508 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.378/1.378, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001492/0.001492, allocations: 47.92 kB / 280.6 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09891, allocations: 46.63 MB / 327.3 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004018/0.103, allocations: 2.462 MB / 329.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1041, allocations: 0.6749 MB / 330.4 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.844e-05/0.1042, allocations: 0 / 330.4 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.1044, allocations: 43.58 kB / 330.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.1045, allocations: 67.34 kB / 330.5 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.1047, allocations: 83.84 kB / 330.6 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.105, allocations: 270.8 kB / 330.9 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.1052, allocations: 80.34 kB / 330.9 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.1053, allocations: 111.5 kB / 331.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.1055, allocations: 119.5 kB / 331.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.517e-05/0.1056, allocations: 20 kB / 331.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.043e-05/0.1057, allocations: 39.98 kB / 331.2 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.306e-05/0.1057, allocations: 43.84 kB / 331.3 MB, free: 460 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1058, allocations: 127.3 kB / 331.4 MB, free: 332 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.1061, allocations: 283.3 kB / 331.7 MB, free: 48 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1061, allocations: 0 / 331.7 MB, free: 48 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1061, allocations: 0 / 331.7 MB, free: 48 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1062, allocations: 0 / 331.7 MB, free: 48 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.0008324/0.107, allocations: 0.5185 MB / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.107, allocations: 8.031 kB / 332.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/0.1071, allocations: 32.66 kB / 332.2 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.1074, allocations: 228.6 kB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1074, allocations: 16.81 kB / 332.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.461e-05/0.1075, allocations: 24.38 kB / 332.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003415/0.1078, allocations: 195.2 kB / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1078, allocations: 0 / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.1079, allocations: 15.94 kB / 332.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.1079, allocations: 4 kB / 332.7 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.1082, allocations: 145.7 kB / 332.8 MB, free: 14.78 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.001317/0.1095, allocations: 0.9451 MB / 333.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.1098, allocations: 154.5 kB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.11, allocations: 100.8 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1101, allocations: 0 / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.1101, allocations: 38.56 kB / 334.1 MB, free: 13.42 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.041e-06/0.1101, allocations: 0 / 334.1 MB, free: 13.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001212/0.1113, allocations: 422.6 kB / 334.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.1114, allocations: 51.41 kB / 334.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.1115, allocations: 170.4 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.1116, allocations: 29.7 kB / 334.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.1116, allocations: 148.1 kB / 334.9 MB, free: 12.56 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.1117, allocations: 59.09 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/0.1117, allocations: 41.64 kB / 335 MB, free: 12.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.1118, allocations: 330.8 kB / 335.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.112, allocations: 47.98 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.1121, allocations: 73.67 kB / 335.4 MB, free: 12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.1123, allocations: 125.6 kB / 335.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1123, allocations: 4 kB / 335.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003661/0.1127, allocations: 218.2 kB / 335.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1127, allocations: 7.938 kB / 335.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1127, allocations: 7.984 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.114, allocations: 216.6 kB / 336 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.1142, allocations: 27.98 kB / 336 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004665/0.1146, allocations: 0.6108 MB / 336.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.1147, allocations: 15.92 kB / 336.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.1148, allocations: 4 kB / 336.6 MB, free: 10.73 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.0001101/0.1149, allocations: 129.8 kB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.1149, allocations: 15.81 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004334/0.1154, allocations: 236.2 kB / 337 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1154, allocations: 4.062 kB / 337 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1154, allocations: 0 / 337 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1154, allocations: 4 kB / 337 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007971/0.1162, allocations: 0.5973 MB / 337.6 MB, free: 9.664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1162, allocations: 0 / 337.6 MB, free: 9.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.1164, allocations: 27.98 kB / 337.7 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009965/0.1174, allocations: 200.7 kB / 337.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1174, allocations: 8 kB / 337.9 MB, free: 9.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004113/0.1178, allocations: 0.6186 MB / 338.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.1178, allocations: 8.047 kB / 338.5 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007594/0.1186, allocations: 424.7 kB / 338.9 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.1187, allocations: 105 kB / 339 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.1187, allocations: 96 / 339 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.1189, allocations: 19.91 kB / 339 MB, free: 8.199 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.1189, allocations: 11.98 kB / 339 MB, free: 8.188 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1189, allocations: 8 kB / 339 MB, free: 8.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.92e-05/0.119, allocations: 124.2 kB / 339.2 MB, free: 8.059 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.119, allocations: 4 kB / 339.2 MB, free: 8.055 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.1193, allocations: 59.84 kB / 339.2 MB, free: 7.996 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.0001803/0.1195, allocations: 115.2 kB / 339.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004088/0.1199, allocations: 143.9 kB / 339.5 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1199, allocations: 0 / 339.5 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.1201, allocations: 95.73 kB / 339.6 MB, free: 7.641 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.1205, allocations: 32.91 kB / 339.6 MB, free: 7.609 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000965/0.1215, allocations: 0.5366 MB / 340.1 MB, free: 7.043 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1218, allocations: 0.74 MB / 340.9 MB, free: 6.277 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.036e-05/0.1218, allocations: 13.53 kB / 340.9 MB, free: 6.266 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.1219, allocations: 19.38 kB / 340.9 MB, free: 6.246 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1219, allocations: 3.938 kB / 340.9 MB, free: 6.242 MB / 286.1 MB Notification: Performance of Templates: time 0.005841/0.1277, allocations: 2.541 MB / 343.5 MB, free: 3.711 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches