Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001181/0.001181, allocations: 107.6 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001197, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 60.34 kB / 306.6 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1086, allocations: 50.52 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003943/0.1126, allocations: 2.59 MB / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.1139, allocations: 0.6895 MB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.1141, allocations: 7.938 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.1143, allocations: 27.83 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.1145, allocations: 63.47 kB / 360.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.1149, allocations: 83.84 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.1152, allocations: 274.8 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1154, allocations: 88.33 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.1157, allocations: 119.5 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.1159, allocations: 115.5 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.1159, allocations: 20 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.116, allocations: 39.98 kB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.13e-05/0.1161, allocations: 47.84 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.1162, allocations: 127.4 kB / 361.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.1165, allocations: 291.2 kB / 361.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1165, allocations: 0 / 361.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1165, allocations: 0 / 361.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1165, allocations: 0 / 361.6 MB, free: 9.711 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008675/0.1174, allocations: 0.5301 MB / 362.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1175, allocations: 12.03 kB / 362.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.994e-05/0.1175, allocations: 58.66 kB / 362.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.1177, allocations: 36.66 kB / 362.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.118, allocations: 251.8 kB / 362.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.118, allocations: 12.81 kB / 362.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.1181, allocations: 24.38 kB / 362.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.1184, allocations: 187.4 kB / 362.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.1185, allocations: 0 / 362.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.1185, allocations: 12 kB / 362.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1185, allocations: 11.92 kB / 362.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.1188, allocations: 149.7 kB / 362.9 MB, free: 8.336 MB / 302.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.001345/0.1202, allocations: 0.9335 MB / 363.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.1205, allocations: 146.5 kB / 364 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.1207, allocations: 100.9 kB / 364.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.1207, allocations: 0 / 364.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1208, allocations: 42.5 kB / 364.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.273e-06/0.1208, allocations: 0 / 364.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001296/0.1221, allocations: 418.2 kB / 364.5 MB, free: 6.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.1221, allocations: 55.41 kB / 364.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.1223, allocations: 184.3 kB / 364.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.1223, allocations: 25.7 kB / 364.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.1225, allocations: 152.1 kB / 364.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.454e-05/0.1225, allocations: 59.17 kB / 365 MB, free: 6.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.125e-05/0.1226, allocations: 37.61 kB / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1227, allocations: 330.8 kB / 365.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1228, allocations: 51.97 kB / 365.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.123, allocations: 74.44 kB / 365.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.1232, allocations: 128 kB / 365.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1232, allocations: 0 / 365.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003969/0.1236, allocations: 214.2 kB / 365.8 MB, free: 5.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1237, allocations: 12.02 kB / 365.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.1237, allocations: 7.938 kB / 365.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.1251, allocations: 208.6 kB / 366 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.1252, allocations: 31.98 kB / 366.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000465/0.1257, allocations: 0.6186 MB / 366.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.1258, allocations: 19.81 kB / 366.7 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.1259, allocations: 8 kB / 366.7 MB, free: 4.277 MB / 302.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.000124/0.126, allocations: 137.1 kB / 366.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.229e-05/0.126, allocations: 15.81 kB / 366.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004411/0.1265, allocations: 238.7 kB / 367.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1265, allocations: 0 / 367.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1265, allocations: 11.92 kB / 367.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1265, allocations: 0 / 367.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008404/0.1274, allocations: 0.5897 MB / 367.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1274, allocations: 3.938 kB / 367.7 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.1275, allocations: 35.91 kB / 367.7 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.1287, allocations: 200.6 kB / 367.9 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.1287, allocations: 4 kB / 367.9 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004337/0.1291, allocations: 0.6225 MB / 368.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1291, allocations: 0 / 368.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008088/0.13, allocations: 432.7 kB / 369 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.13, allocations: 92.95 kB / 369.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.277e-05/0.1301, allocations: 7.984 kB / 369.1 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.1302, allocations: 8 kB / 369.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.1303, allocations: 15.92 kB / 369.1 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.1303, allocations: 4 kB / 369.1 MB, free: 1.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.1304, allocations: 136.1 kB / 369.2 MB, free: 1.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1304, allocations: 0 / 369.2 MB, free: 1.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.1307, allocations: 55.84 kB / 369.3 MB, free: 1.547 MB / 302.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.001103/0.1318, allocations: 0.9598 MB / 370.3 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003891/0.1322, allocations: 154 kB / 370.4 MB, free: 416 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1322, allocations: 0 / 370.4 MB, free: 416 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.1324, allocations: 88.08 kB / 370.5 MB, free: 328 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.1328, allocations: 31.64 kB / 370.5 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1873/0.3201, allocations: 2.404 MB / 372.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.3205, allocations: 0.7413 MB / 373.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.902e-05/0.3206, allocations: 9.547 kB / 373.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.77e-05/0.3207, allocations: 64.56 kB / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3207, allocations: 0 / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02796/0.3486, allocations: 4.572 MB / 378.3 MB, free: 18.13 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/0.3489, allocations: 241.4 kB / 378.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/2.546, allocations: 5.188 kB / 378.6 MB, free: 17.87 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches