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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 91.11 kB / 16.95 MB, free: 6.383 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.0007549/0.0007549, allocations: 182.9 kB / 17.84 MB, free: 5.98 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.429/1.429, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004407/0.0004408, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09709, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002832/0.09997, allocations: 2.084 MB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1011, allocations: 0.6442 MB / 331.2 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1012, allocations: 4 kB / 331.2 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.1014, allocations: 19.83 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.1015, allocations: 63.47 kB / 331.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.1018, allocations: 63.86 kB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.1021, allocations: 242.9 kB / 331.6 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.1023, allocations: 68.78 kB / 331.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.1024, allocations: 91.64 kB / 331.7 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.1026, allocations: 103.5 kB / 331.8 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.1026, allocations: 12 kB / 331.8 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-05/0.1027, allocations: 20 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.146e-05/0.1028, allocations: 43.83 kB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.826e-05/0.1028, allocations: 69.58 kB / 332 MB, free: 460 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.1031, allocations: 203.7 kB / 332.2 MB, free: 256 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.1031, allocations: 4 kB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1031, allocations: 3.938 kB / 332.2 MB, free: 248 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.1031, allocations: 0 / 332.2 MB, free: 248 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.0008107/0.1039, allocations: 494.9 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.104, allocations: 12.03 kB / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.309e-05/0.1041, allocations: 54.53 kB / 332.7 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.405e-05/0.1041, allocations: 27.72 kB / 332.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.1044, allocations: 227.3 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.1045, allocations: 16.39 kB / 333 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.429e-05/0.1045, allocations: 24 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.1049, allocations: 191.2 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1049, allocations: 0 / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.1049, allocations: 12 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.105, allocations: 4 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.1053, allocations: 153.7 kB / 333.4 MB, free: 14.95 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.001388/0.1067, allocations: 0.9375 MB / 334.3 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.107, allocations: 154.5 kB / 334.4 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.1072, allocations: 100.8 kB / 334.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1072, allocations: 7.984 kB / 334.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.1073, allocations: 38.55 kB / 334.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.1073, allocations: 0 / 334.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001262/0.1085, allocations: 430.5 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.1086, allocations: 55.41 kB / 335.1 MB, free: 13.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.1088, allocations: 167.1 kB / 335.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.1088, allocations: 29.7 kB / 335.2 MB, free: 12.87 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.651e-05/0.1089, allocations: 148.1 kB / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.396e-05/0.1089, allocations: 55.17 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-06/0.1089, allocations: 0 / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1091, allocations: 330.8 kB / 335.8 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.1092, allocations: 52.36 kB / 335.8 MB, free: 12.28 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.1093, allocations: 74.38 kB / 335.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.1094, allocations: 67.88 kB / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1095, allocations: 0 / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004258/0.1099, allocations: 230.1 kB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1099, allocations: 8 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1099, allocations: 0 / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/0.1112, allocations: 228.6 kB / 336.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.1114, allocations: 31.97 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004818/0.1119, allocations: 0.6108 MB / 337.1 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.112, allocations: 11.88 kB / 337.1 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.112, allocations: 12 kB / 337.1 MB, free: 10.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.1122, allocations: 133.9 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.1122, allocations: 15.81 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.1126, allocations: 236.2 kB / 337.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1127, allocations: 0 / 337.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1127, allocations: 3.953 kB / 337.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1127, allocations: 11.98 kB / 337.5 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008942/0.1136, allocations: 0.5896 MB / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.1136, allocations: 0 / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.1138, allocations: 36.02 kB / 338.1 MB, free: 9.875 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.1148, allocations: 208.6 kB / 338.3 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.1148, allocations: 8 kB / 338.3 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004605/0.1153, allocations: 0.6265 MB / 338.9 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1153, allocations: 0 / 338.9 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007369/0.116, allocations: 429.2 kB / 339.4 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.1161, allocations: 96.81 kB / 339.5 MB, free: 8.453 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.1161, allocations: 4 kB / 339.5 MB, free: 8.449 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.1163, allocations: 11.98 kB / 339.5 MB, free: 8.438 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.1163, allocations: 11.98 kB / 339.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.1163, allocations: 8 kB / 339.5 MB, free: 8.418 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.1165, allocations: 131.6 kB / 339.6 MB, free: 8.289 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1165, allocations: 0 / 339.6 MB, free: 8.289 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.1168, allocations: 59.83 kB / 339.7 MB, free: 8.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001137/0.1179, allocations: 0.9641 MB / 340.6 MB, free: 7.234 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.1183, allocations: 164.4 kB / 340.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1183, allocations: 0 / 340.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.1185, allocations: 91.84 kB / 340.9 MB, free: 6.984 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.1189, allocations: 27.98 kB / 340.9 MB, free: 6.957 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.1209, allocations: 1.345 MB / 342.3 MB, free: 5.551 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1212, allocations: 0.7438 MB / 343 MB, free: 4.781 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.422e-05/0.1213, allocations: 9.656 kB / 343 MB, free: 4.773 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.1214, allocations: 71.28 kB / 343.1 MB, free: 4.707 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1214, allocations: 0 / 343.1 MB, free: 4.707 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02028/0.1417, allocations: 4.172 MB / 347.3 MB, free: 0.543 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002797/0.142, allocations: 215.6 kB / 347.5 MB, free: 312 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.226, allocations: 0 / 347.5 MB, free: 312 kB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat