Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 93.64 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.001561, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002589, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002514/0.1131, allocations: 1.636 MB / 359.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.1142, allocations: 0.5223 MB / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.1143, allocations: 4 kB / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.1145, allocations: 19.84 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.861e-05/0.1146, allocations: 19.78 kB / 360.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.1148, allocations: 39.95 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.1151, allocations: 135.5 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.1153, allocations: 62.11 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.1155, allocations: 51.8 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.1156, allocations: 59.75 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.1156, allocations: 8 kB / 360.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.923e-05/0.1157, allocations: 8 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.671e-05/0.1157, allocations: 27.86 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.497e-05/0.1158, allocations: 49.64 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.1159, allocations: 123.9 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.116, allocations: 0 / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.116, allocations: 4 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.116, allocations: 0 / 361.1 MB, free: 11.2 MB / 302.1 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.0005401/0.1165, allocations: 418.7 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1166, allocations: 11.97 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.173e-05/0.1166, allocations: 46.55 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.1168, allocations: 23.81 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.117, allocations: 202.9 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.117, allocations: 15.95 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.117, allocations: 19.91 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.1173, allocations: 141.5 kB / 361.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.1173, allocations: 0 / 361.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.1174, allocations: 8 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1174, allocations: 4 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.1176, allocations: 99.69 kB / 362 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.1183, allocations: 0.5329 MB / 362.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.1185, allocations: 82.48 kB / 362.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.502e-05/0.1186, allocations: 28.86 kB / 362.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.1186, allocations: 0 / 362.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1186, allocations: 42.67 kB / 362.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.31e-07/0.1186, allocations: 0 / 362.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009494/0.1196, allocations: 0.5992 MB / 363.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.1196, allocations: 51.41 kB / 363.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.583e-05/0.1197, allocations: 139.9 kB / 363.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1198, allocations: 25.98 kB / 363.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.207e-05/0.1198, allocations: 132 kB / 363.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.1199, allocations: 35.45 kB / 363.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-06/0.1199, allocations: 7.938 kB / 363.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.12, allocations: 326.8 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.44e-05/0.1201, allocations: 31.98 kB / 364.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.1202, allocations: 87.47 kB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.014e-05/0.1203, allocations: 47.94 kB / 364.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1203, allocations: 0 / 364.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002704/0.1206, allocations: 161.5 kB / 364.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.1206, allocations: 8 kB / 364.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1206, allocations: 4 kB / 364.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1207, allocations: 7.953 kB / 364.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.1208, allocations: 39.92 kB / 364.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1208, allocations: 4 kB / 364.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.604e-05/0.1209, allocations: 4 kB / 364.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.1209, allocations: 12 kB / 364.4 MB, free: 7.504 MB / 302.1 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.0001047/0.1211, allocations: 134.9 kB / 364.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.1211, allocations: 11.91 kB / 364.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.1211, allocations: 12.38 kB / 364.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1212, allocations: 3.953 kB / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1212, allocations: 0 / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1212, allocations: 4 kB / 364.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005251/0.1217, allocations: 448 kB / 365 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1217, allocations: 3.953 kB / 365 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.1219, allocations: 27.92 kB / 365.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1219, allocations: 0 / 365.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.1219, allocations: 4.188 kB / 365.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1219, allocations: 0 / 365.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1219, allocations: 3.938 kB / 365.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003322/0.1222, allocations: 265.1 kB / 365.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.1223, allocations: 88.97 kB / 365.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.1223, allocations: 4 kB / 365.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.242e-05/0.1224, allocations: 15.98 kB / 365.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.1225, allocations: 8 kB / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.1225, allocations: 0 / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.225e-05/0.1225, allocations: 99.25 kB / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1225, allocations: 0 / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.1228, allocations: 28 kB / 365.6 MB, free: 6.246 MB / 302.1 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.0006214/0.1234, allocations: 0.7882 MB / 366.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.1237, allocations: 99.95 kB / 366.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1237, allocations: 0 / 366.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.247e-05/0.1238, allocations: 43.92 kB / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.1241, allocations: 10.23 kB / 366.5 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.1257, allocations: 0.9658 MB / 367.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.126, allocations: 0.7083 MB / 368.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.294e-05/0.1261, allocations: 12.88 kB / 368.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.812e-05/0.1262, allocations: 43.42 kB / 368.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1262, allocations: 0 / 368.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01157/0.1378, allocations: 2.072 MB / 370.3 MB, free: 1.512 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.138, allocations: 187.8 kB / 370.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/1.927, allocations: 3.125 kB / 370.5 MB, free: 1.266 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat