Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.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.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",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.000974/0.0009738, allocations: 98.45 kB / 16.96 MB, free: 6.449 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.00106/0.00106, allocations: 185.2 kB / 17.84 MB, free: 6.004 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.628/1.628, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004422/0.0004423, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.001861/0.1069, allocations: 1.45 MB / 329.9 MB, free: 2.527 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.108, allocations: 0.6286 MB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.156e-05/0.1081, allocations: 4 kB / 330.5 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.1082, allocations: 11.86 kB / 330.5 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.619e-05/0.1083, allocations: 31.75 kB / 330.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.1085, allocations: 39.89 kB / 330.6 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.1087, allocations: 111.4 kB / 330.7 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.1088, allocations: 29.36 kB / 330.8 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.28e-05/0.1089, allocations: 35.86 kB / 330.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.109, allocations: 43.78 kB / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.109, allocations: 4 kB / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.175e-05/0.1091, allocations: 20 kB / 330.9 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.391e-05/0.1092, allocations: 15.92 kB / 330.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.776e-05/0.1092, allocations: 41.7 kB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.1094, allocations: 99.98 kB / 331 MB, free: 1.402 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.1094, allocations: 4 kB / 331 MB, free: 1.398 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.1094, allocations: 0 / 331 MB, free: 1.398 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1094, allocations: 3.938 kB / 331 MB, free: 1.395 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005678/0.11, allocations: 387.2 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.11, allocations: 12.03 kB / 331.4 MB, free: 0.957 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.021e-05/0.1101, allocations: 46.55 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.1103, allocations: 31.8 kB / 331.5 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002316/0.1105, allocations: 186.9 kB / 331.7 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1105, allocations: 12.17 kB / 331.7 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.1106, allocations: 11.94 kB / 331.7 MB, free: 0.625 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.1108, allocations: 91.16 kB / 331.8 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1109, allocations: 3.906 kB / 331.8 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.1109, allocations: 4 kB / 331.8 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.1109, allocations: 4 kB / 331.8 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.111, allocations: 60.53 kB / 331.8 MB, free: 472 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000804/0.1119, allocations: 444.4 kB / 332.3 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.1121, allocations: 110.6 kB / 332.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.428e-05/0.1122, allocations: 28.8 kB / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.1122, allocations: 0 / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1123, allocations: 46.5 kB / 332.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.001e-06/0.1123, allocations: 0 / 332.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001307/0.1136, allocations: 0.5226 MB / 333 MB, free: 15.17 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/0.1137, allocations: 51.41 kB / 333 MB, free: 15.11 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.1138, allocations: 126.1 kB / 333.2 MB, free: 14.97 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.1138, allocations: 37.7 kB / 333.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.584e-05/0.1139, allocations: 103.9 kB / 333.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.196e-05/0.114, allocations: 43.36 kB / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.114, allocations: 0 / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1141, allocations: 318.8 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.121e-05/0.1142, allocations: 27.98 kB / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.614e-05/0.1143, allocations: 63.34 kB / 333.7 MB, free: 14.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.678e-05/0.1144, allocations: 43.94 kB / 333.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.1144, allocations: 0 / 333.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001926/0.1146, allocations: 125.6 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1146, allocations: 7.953 kB / 333.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.1146, allocations: 7.984 kB / 333.9 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1146, allocations: 0 / 333.9 MB, free: 14.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.1148, allocations: 35.92 kB / 334 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.1148, allocations: 0 / 334 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.043e-05/0.1149, allocations: 19.91 kB / 334 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.1149, allocations: 4 kB / 334 MB, free: 14.11 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.115, allocations: 117.8 kB / 334.1 MB, free: 13.99 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.1151, allocations: 11.84 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.226e-05/0.1151, allocations: 16.33 kB / 334.1 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1151, allocations: 7.984 kB / 334.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.1151, allocations: 4 kB / 334.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1152, allocations: 0 / 334.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005277/0.1157, allocations: 424.1 kB / 334.6 MB, free: 13.47 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1157, allocations: 3.953 kB / 334.6 MB, free: 13.47 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.1159, allocations: 31.92 kB / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.1159, allocations: 0 / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.1159, allocations: 4.094 kB / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1159, allocations: 3.938 kB / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1159, allocations: 0 / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.1163, allocations: 254.2 kB / 334.8 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.1163, allocations: 92.91 kB / 334.9 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.1163, allocations: 0 / 334.9 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.038e-05/0.1164, allocations: 11.94 kB / 334.9 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.014e-05/0.1165, allocations: 8.031 kB / 335 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.1165, allocations: 8 kB / 335 MB, free: 13.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.1166, allocations: 91.27 kB / 335 MB, free: 12.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1166, allocations: 0 / 335 MB, free: 12.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.1168, allocations: 24 kB / 335.1 MB, free: 12.91 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,heatCapacitor.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 (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006212/0.1175, allocations: 0.7842 MB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.1177, allocations: 88.05 kB / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1177, allocations: 0 / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.246e-05/0.1178, allocations: 39.94 kB / 336 MB, free: 11.96 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.1182, allocations: 15.98 kB / 336 MB, free: 11.95 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1196, allocations: 0.9671 MB / 337 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.1199, allocations: 0.7118 MB / 337.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.791e-05/0.12, allocations: 12.89 kB / 337.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.277e-05/0.1201, allocations: 27.42 kB / 337.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1201, allocations: 0 / 337.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.1329, allocations: 2.27 MB / 340 MB, free: 7.887 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.1331, allocations: 197.7 kB / 340.2 MB, free: 7.645 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.07, allocations: 7.938 kB / 340.2 MB, free: 7.637 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat