Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002367/0.002367, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.264/2.264, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001192/0.001192, allocations: 98.81 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004098, allocations: 15.97 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1032, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002908/0.1062, allocations: 1.593 MB / 376.2 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.1074, allocations: 0.5077 MB / 376.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.1076, allocations: 4 kB / 376.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.099e-05/0.1077, allocations: 15.91 kB / 376.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.1078, allocations: 35.86 kB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.108, allocations: 31.97 kB / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002334/0.1083, allocations: 95.81 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.1085, allocations: 54.14 kB / 377 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.1086, allocations: 59.78 kB / 377 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.1088, allocations: 51.77 kB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.1088, allocations: 8 kB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.687e-05/0.1089, allocations: 8 kB / 377.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.452e-05/0.1089, allocations: 19.92 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.513e-05/0.109, allocations: 49.64 kB / 377.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.1093, allocations: 123.9 kB / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.1093, allocations: 0 / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1093, allocations: 0 / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1093, allocations: 0 / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.000755/0.1101, allocations: 426.8 kB / 377.7 MB, free: 12.19 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1101, allocations: 11.97 kB / 377.7 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.028e-05/0.1102, allocations: 46.55 kB / 377.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.197e-05/0.1103, allocations: 15.81 kB / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.1106, allocations: 202.8 kB / 378 MB, free: 11.87 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.1106, allocations: 15.94 kB / 378 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.1107, allocations: 16 kB / 378 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004366/0.1111, allocations: 145.1 kB / 378.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.1111, allocations: 3.984 kB / 378.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.1112, allocations: 8 kB / 378.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1112, allocations: 0 / 378.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003347/0.1115, allocations: 91.94 kB / 378.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.1127, allocations: 0.5366 MB / 378.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002683/0.113, allocations: 86.47 kB / 378.9 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.113, allocations: 4 kB / 378.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.1131, allocations: 34.56 kB / 378.9 MB, free: 10.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.265e-06/0.1131, allocations: 0 / 378.9 MB, free: 10.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.001439/0.1145, allocations: 0.6109 MB / 379.5 MB, free: 10.15 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.1146, allocations: 63.28 kB / 379.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.1148, allocations: 126.7 kB / 379.7 MB, free: 9.941 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.1148, allocations: 29.69 kB / 379.7 MB, free: 9.906 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1149, allocations: 206.3 kB / 379.9 MB, free: 9.703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/0.115, allocations: 39.58 kB / 380 MB, free: 9.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.083e-05/0.115, allocations: 4 kB / 380 MB, free: 9.66 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1152, allocations: 326.8 kB / 380.3 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.1153, allocations: 27.98 kB / 380.3 MB, free: 9.305 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.1155, allocations: 86.84 kB / 380.4 MB, free: 9.195 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.1157, allocations: 47.94 kB / 380.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1157, allocations: 0 / 380.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004258/0.1161, allocations: 153.4 kB / 380.6 MB, free: 8.992 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.1162, allocations: 11.98 kB / 380.6 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1162, allocations: 0 / 380.6 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1162, allocations: 4 kB / 380.6 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.1165, allocations: 35.92 kB / 380.7 MB, free: 8.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1165, allocations: 8.188 kB / 380.7 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.1167, allocations: 11.91 kB / 380.7 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.1167, allocations: 8 kB / 380.7 MB, free: 8.914 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.0001308/0.1168, allocations: 122.2 kB / 380.8 MB, free: 8.785 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.1169, allocations: 19.84 kB / 380.8 MB, free: 8.766 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.614e-05/0.117, allocations: 8.375 kB / 380.8 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.117, allocations: 3.938 kB / 380.8 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.117, allocations: 0 / 380.8 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.117, allocations: 8 kB / 380.8 MB, free: 8.746 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008418/0.1179, allocations: 452 kB / 381.3 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1179, allocations: 0 / 381.3 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/0.1181, allocations: 24.03 kB / 381.3 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.1182, allocations: 8.047 kB / 381.3 MB, free: 8.211 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1182, allocations: 8 kB / 381.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1182, allocations: 192 / 381.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1182, allocations: 0 / 381.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.1188, allocations: 288.4 kB / 381.6 MB, free: 7.887 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.052e-05/0.1189, allocations: 85.02 kB / 381.7 MB, free: 7.785 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.1189, allocations: 4 kB / 381.7 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.1191, allocations: 4 kB / 381.7 MB, free: 7.777 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.1191, allocations: 11.98 kB / 381.7 MB, free: 7.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.1191, allocations: 3.953 kB / 381.7 MB, free: 7.762 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.574e-05/0.1192, allocations: 100.7 kB / 381.8 MB, free: 7.664 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1193, allocations: 0 / 381.8 MB, free: 7.664 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003771/0.1196, allocations: 28 kB / 381.8 MB, free: 7.637 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * 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.0009705/0.1206, allocations: 0.9447 MB / 382.8 MB, free: 6.648 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003939/0.121, allocations: 92.27 kB / 382.9 MB, free: 6.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1211, allocations: 4 kB / 382.9 MB, free: 6.555 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.1212, allocations: 39.92 kB / 382.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.1216, allocations: 23.91 kB / 382.9 MB, free: 6.492 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.1242, allocations: 2.038 MB / 385 MB, free: 4.371 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1247, allocations: 0.7199 MB / 385.7 MB, free: 3.625 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.1248, allocations: 47.36 kB / 385.7 MB, free: 3.578 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1248, allocations: 0 / 385.7 MB, free: 3.578 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.577/2.702, allocations: 2.036 MB / 387.8 MB, free: 1.539 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat