Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",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.001393/0.001394, allocations: 92.53 kB / 16.95 MB, free: 6.402 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.00138/0.001381, allocations: 182 kB / 17.83 MB, free: 5.969 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.442/1.442, allocations: 205.4 MB / 224 MB, free: 13.07 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.0004773/0.0004773, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.09876, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.002902/0.1017, allocations: 1.784 MB / 330.2 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1028, allocations: 487.9 kB / 330.7 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.103, allocations: 4 kB / 330.7 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.1031, allocations: 19.84 kB / 330.7 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.1032, allocations: 35.69 kB / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.1035, allocations: 31.91 kB / 330.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.1037, allocations: 139.3 kB / 330.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.1039, allocations: 45.44 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.104, allocations: 55.8 kB / 331 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.1041, allocations: 59.7 kB / 331.1 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.1041, allocations: 4 kB / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.406e-05/0.1042, allocations: 12 kB / 331.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.1042, allocations: 15.92 kB / 331.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.4e-05/0.1043, allocations: 53.64 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.1044, allocations: 119.9 kB / 331.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1044, allocations: 0 / 331.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1045, allocations: 4 kB / 331.3 MB, free: 1.098 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1045, allocations: 0 / 331.3 MB, free: 1.098 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005797/0.1051, allocations: 419.1 kB / 331.7 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1051, allocations: 8.031 kB / 331.7 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.967e-05/0.1052, allocations: 50.48 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.1053, allocations: 19.81 kB / 331.8 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.1055, allocations: 202.8 kB / 332 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.1056, allocations: 8.234 kB / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.1056, allocations: 16 kB / 332 MB, free: 300 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.1059, allocations: 119.4 kB / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1059, allocations: 0 / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.1059, allocations: 11.98 kB / 332.1 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.1059, allocations: 0 / 332.1 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.1061, allocations: 80.67 kB / 332.2 MB, free: 84 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007938/0.1069, allocations: 0.6089 MB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/0.1073, allocations: 90.56 kB / 332.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.1074, allocations: 32.97 kB / 332.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.1074, allocations: 3.938 kB / 332.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.1075, allocations: 34.56 kB / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.1075, allocations: 0 / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008793/0.1084, allocations: 267.4 kB / 333.2 MB, free: 14.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.1084, allocations: 55.41 kB / 333.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.1086, allocations: 149.5 kB / 333.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.1086, allocations: 29.7 kB / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.297e-05/0.1087, allocations: 123.9 kB / 333.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.1088, allocations: 31.58 kB / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.1088, allocations: 0 / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1089, allocations: 314.8 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.109, allocations: 31.92 kB / 334 MB, free: 14.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.1092, allocations: 46.56 kB / 334 MB, free: 14.11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.1093, allocations: 27.98 kB / 334 MB, free: 14.08 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1093, allocations: 0 / 334 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004185/0.1097, allocations: 138.3 kB / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1098, allocations: 7.938 kB / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.1098, allocations: 0 / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.11, allocations: 41.08 kB / 334.2 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.837e-05/0.1101, allocations: 11.98 kB / 334.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/0.1121, allocations: 1.522 MB / 335.7 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.881e-05/0.1122, allocations: 7.938 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.1122, allocations: 4 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001541/0.1124, allocations: 125.8 kB / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.606e-05/0.1124, allocations: 7.906 kB / 335.9 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.1125, allocations: 12.7 kB / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1125, allocations: 0 / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.1125, allocations: 8 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1125, allocations: 3.953 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003138/0.1128, allocations: 213.5 kB / 336.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1128, allocations: 0 / 336.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-05/0.1129, allocations: 4 kB / 336.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001633/0.1131, allocations: 40.89 kB / 336.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.1131, allocations: 8 kB / 336.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/0.1147, allocations: 1.494 MB / 337.7 MB, free: 10.1 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.1147, allocations: 3.984 kB / 337.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.1152, allocations: 232.3 kB / 337.9 MB, free: 9.848 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.1152, allocations: 85.2 kB / 338 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.1153, allocations: 0 / 338 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.1154, allocations: 11.92 kB / 338 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.1155, allocations: 8 kB / 338 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.1155, allocations: 4 kB / 338 MB, free: 9.723 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001103/0.1156, allocations: 111.2 kB / 338.1 MB, free: 9.613 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1156, allocations: 0 / 338.1 MB, free: 9.613 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005722/0.1162, allocations: 43.84 kB / 338.2 MB, free: 9.57 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006616/0.1169, allocations: 0.7485 MB / 338.9 MB, free: 8.793 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004504/0.1173, allocations: 194.7 kB / 339.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1174, allocations: 4.125 kB / 339.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.1177, allocations: 158.6 kB / 339.3 MB, free: 8.418 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.1181, allocations: 23.17 kB / 339.3 MB, free: 8.398 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.1199, allocations: 0.7851 MB / 340.1 MB, free: 7.555 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.1202, allocations: 0.7157 MB / 340.8 MB, free: 6.812 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.565e-05/0.1203, allocations: 448 / 340.8 MB, free: 6.812 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.954e-05/0.1204, allocations: 35.42 kB / 340.8 MB, free: 6.777 MB / 286.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1204, allocations: 0 / 340.8 MB, free: 6.777 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.1399, allocations: 2.607 MB / 343.4 MB, free: 4.18 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002481/0.1402, allocations: 218.5 kB / 343.6 MB, free: 3.938 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.062, allocations: 0 / 343.6 MB, free: 3.938 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat does not exist to compare? outputFormat=mat