Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000824/0.0008237, allocations: 96.5 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.0009138/0.0009138, allocations: 193.6 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.349/1.349, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000242/0.0002421, allocations: 8 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00165/0.1091, allocations: 1.258 MB / 359.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003087/0.1094, allocations: 151.5 kB / 359.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.664e-05/0.1095, allocations: 0 / 359.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.849e-05/0.1095, allocations: 7.938 kB / 359.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.1096, allocations: 7.984 kB / 359.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.1099, allocations: 35.91 kB / 359.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.055e-05/0.1099, allocations: 27.92 kB / 359.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.451e-05/0.11, allocations: 11.98 kB / 359.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.882e-05/0.1101, allocations: 11.92 kB / 359.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.024e-05/0.1101, allocations: 15.86 kB / 359.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1101, allocations: 0 / 359.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.137e-05/0.1102, allocations: 8 kB / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.1102, allocations: 11.98 kB / 359.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.121e-05/0.1102, allocations: 33.64 kB / 359.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.063e-05/0.1103, allocations: 23.95 kB / 359.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1103, allocations: 3.938 kB / 359.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1103, allocations: 4 kB / 359.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1103, allocations: 0 / 359.9 MB, free: 12.35 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003917/0.1107, allocations: 355.4 kB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1108, allocations: 8.031 kB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.1108, allocations: 42.55 kB / 360.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.555e-05/0.1108, allocations: 11.84 kB / 360.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.111, allocations: 192.8 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.111, allocations: 4 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.1111, allocations: 11.95 kB / 360.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002564/0.1113, allocations: 117 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.1113, allocations: 0 / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.1114, allocations: 0 / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.1114, allocations: 0 / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.451e-05/0.1114, allocations: 23.92 kB / 360.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002954/0.1117, allocations: 269.7 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.1119, allocations: 138.2 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.852e-05/0.112, allocations: 29.77 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.1121, allocations: 4 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.1121, allocations: 34.56 kB / 361.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.51e-07/0.1121, allocations: 0 / 361.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002411/0.1123, allocations: 77.61 kB / 361.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.1124, allocations: 89.22 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.1125, allocations: 126.1 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.1125, allocations: 29.7 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.1126, allocations: 88.05 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.1126, allocations: 7.938 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-06/0.1126, allocations: 0 / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1127, allocations: 322.8 kB / 361.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.1128, allocations: 4 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.636e-05/0.1128, allocations: 51.55 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.913e-05/0.1129, allocations: 12 kB / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1129, allocations: 0 / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001276/0.113, allocations: 73.61 kB / 362 MB, free: 9.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.113, allocations: 8 kB / 362 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1131, allocations: 0 / 362 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1131, allocations: 7.922 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.627e-05/0.1131, allocations: 15.92 kB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.1132, allocations: 7.938 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.757e-05/0.1132, allocations: 8.125 kB / 362 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1132, allocations: 0 / 362 MB, free: 9.934 MB / 302.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 (4): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.376e-05/0.1133, allocations: 118.9 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-05/0.1134, allocations: 49.59 kB / 362.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.154e-05/0.1134, allocations: 12.25 kB / 362.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1134, allocations: 0 / 362.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1134, allocations: 0 / 362.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1134, allocations: 7.984 kB / 362.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.1136, allocations: 165.6 kB / 362.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1136, allocations: 4 kB / 362.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.605e-05/0.1137, allocations: 15.92 kB / 362.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1137, allocations: 0 / 362.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.1137, allocations: 4 kB / 362.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1137, allocations: 0 / 362.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1137, allocations: 0 / 362.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001656/0.1139, allocations: 164.4 kB / 362.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.605e-05/0.1139, allocations: 101 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.114, allocations: 0 / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.197e-05/0.114, allocations: 4 kB / 362.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.659e-05/0.1141, allocations: 3.984 kB / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.1141, allocations: 0 / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.443e-05/0.1142, allocations: 105.7 kB / 362.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.1142, allocations: 0 / 362.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.1144, allocations: 7.938 kB / 362.8 MB, free: 9.078 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (4): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004172/0.1148, allocations: 0.7015 MB / 363.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001188/0.1149, allocations: 43.91 kB / 363.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1149, allocations: 0 / 363.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.928e-05/0.115, allocations: 4 kB / 363.5 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1153, allocations: 24.02 kB / 363.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007004/0.116, allocations: 490 kB / 364 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.1163, allocations: 0.6887 MB / 364.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.133e-05/0.1163, allocations: 0 / 364.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.1163, allocations: 19.42 kB / 364.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1164, allocations: 3.938 kB / 364.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01068/0.127, allocations: 1.227 MB / 366 MB, free: 5.902 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.1273, allocations: 198.7 kB / 366.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/1.849, allocations: 0 / 366.2 MB, free: 5.66 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat