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.0008696/0.0008696, allocations: 100.2 kB / 16.94 MB, free: 6.441 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.0008498/0.0008499, allocations: 187.5 kB / 17.83 MB, free: 6.008 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.413/1.413, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004802/0.0004803, allocations: 8 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0933/0.09379, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002476/0.09631, allocations: 1.984 MB / 330.4 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.09738, allocations: 0.656 MB / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.956e-05/0.09749, allocations: 0 / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.797e-05/0.09755, allocations: 23.83 kB / 331.1 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.09771, allocations: 75.77 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.09793, allocations: 63.86 kB / 331.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.09819, allocations: 183.6 kB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.09839, allocations: 68.78 kB / 331.5 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.09859, allocations: 95.62 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.09873, allocations: 95.55 kB / 331.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.09877, allocations: 12 kB / 331.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.171e-05/0.09884, allocations: 20 kB / 331.7 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.89e-05/0.09889, allocations: 47.81 kB / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.172e-05/0.09896, allocations: 65.58 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.09919, allocations: 203.7 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.0992, allocations: 0 / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.09921, allocations: 0 / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.09922, allocations: 7.938 kB / 332 MB, free: 404 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.0007859/0.1, allocations: 498.9 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1001, allocations: 8.031 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.501e-05/0.1001, allocations: 58.55 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.1002, allocations: 27.72 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.1005, allocations: 227.3 kB / 332.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.1005, allocations: 20.39 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.035e-05/0.1006, allocations: 23.94 kB / 332.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.1009, allocations: 183.3 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.101, allocations: 0 / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.101, allocations: 15.98 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.101, allocations: 4 kB / 333 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.1013, allocations: 157.7 kB / 333.2 MB, free: 15.09 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.001368/0.1027, allocations: 0.9297 MB / 334.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.103, allocations: 158.6 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.103, allocations: 3.984 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.1031, allocations: 34.56 kB / 334.3 MB, free: 13.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.1031, allocations: 0 / 334.3 MB, free: 13.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.00131/0.1044, allocations: 427.4 kB / 334.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.1045, allocations: 55.39 kB / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.1046, allocations: 167.1 kB / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.1047, allocations: 29.7 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1048, allocations: 144.1 kB / 335.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.886e-05/0.1049, allocations: 59.16 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.908e-06/0.1049, allocations: 4 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.105, allocations: 330.8 kB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1051, allocations: 48.36 kB / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1053, allocations: 78.36 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.1054, allocations: 59.95 kB / 335.7 MB, free: 12.4 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1054, allocations: 0 / 335.7 MB, free: 12.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004354/0.1059, allocations: 242.1 kB / 335.9 MB, free: 12.15 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1059, allocations: 4 kB / 335.9 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1059, allocations: 0 / 335.9 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.1073, allocations: 228.6 kB / 336.2 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.1074, allocations: 35.92 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005119/0.1079, allocations: 0.6108 MB / 336.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.1081, allocations: 15.84 kB / 336.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.1081, allocations: 12.05 kB / 336.8 MB, free: 11.22 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.0001384/0.1083, allocations: 125.8 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.587e-05/0.1083, allocations: 15.81 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004497/0.1088, allocations: 240.2 kB / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1088, allocations: 7.984 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.1088, allocations: 3.953 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1088, allocations: 3.984 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.1091, allocations: 289.4 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1091, allocations: 0 / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1093, allocations: 31.91 kB / 337.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.1103, allocations: 216.6 kB / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1104, allocations: 0 / 337.7 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000454/0.1108, allocations: 0.6225 MB / 338.4 MB, free: 9.586 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1108, allocations: 0 / 338.4 MB, free: 9.586 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000565/0.1114, allocations: 388.5 kB / 338.7 MB, free: 9.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.638e-05/0.1115, allocations: 104.8 kB / 338.9 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.1115, allocations: 4 kB / 338.9 MB, free: 9.062 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.1117, allocations: 12 kB / 338.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.1117, allocations: 7.984 kB / 338.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.1117, allocations: 7.984 kB / 338.9 MB, free: 9.035 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.1119, allocations: 131.6 kB / 339 MB, free: 8.906 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1119, allocations: 4 kB / 339 MB, free: 8.902 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003062/0.1122, allocations: 51.84 kB / 339.1 MB, free: 8.852 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0009241/0.1131, allocations: 0.9286 MB / 340 MB, free: 7.895 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.1135, allocations: 163.8 kB / 340.2 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1135, allocations: 3.938 kB / 340.2 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.1137, allocations: 96.02 kB / 340.3 MB, free: 7.637 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.114, allocations: 19.28 kB / 340.3 MB, free: 7.621 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.1162, allocations: 1.498 MB / 341.8 MB, free: 6.066 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.1166, allocations: 0.7441 MB / 342.5 MB, free: 5.297 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.95e-05/0.1166, allocations: 13.55 kB / 342.5 MB, free: 5.281 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.1167, allocations: 51.42 kB / 342.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of SimCode: time 2.255e-06/0.1167, allocations: 112 / 342.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.1345, allocations: 4.163 MB / 346.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.1347, allocations: 210.5 kB / 346.9 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/1.914, allocations: 0 / 346.9 MB, free: 0.8398 MB / 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