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.0008965/0.0008965, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009835/0.0009835, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002297/0.0002297, allocations: 8 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002046/0.1192, allocations: 1.27 MB / 359.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003932/0.1196, allocations: 135.6 kB / 359.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.826e-05/0.1197, allocations: 7.875 kB / 359.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.495e-05/0.1198, allocations: 4 kB / 359.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.1199, allocations: 7.922 kB / 359.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.1202, allocations: 31.91 kB / 359.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.1203, allocations: 19.98 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.1204, allocations: 15.97 kB / 359.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.409e-05/0.1205, allocations: 15.92 kB / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.039e-05/0.1205, allocations: 15.86 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.138e-05/0.1205, allocations: 0 / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.557e-05/0.1205, allocations: 4 kB / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.1206, allocations: 8 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.141e-05/0.1206, allocations: 37.62 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.177e-05/0.1207, allocations: 19.95 kB / 359.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1207, allocations: 0 / 359.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.1207, allocations: 0 / 359.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1208, allocations: 7.938 kB / 359.8 MB, free: 12.18 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.0005084/0.1213, allocations: 367.4 kB / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1213, allocations: 8.031 kB / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.672e-05/0.1214, allocations: 34.56 kB / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.1214, allocations: 7.906 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.1216, allocations: 190.8 kB / 360.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-06/0.1216, allocations: 0 / 360.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.1217, allocations: 7.953 kB / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.122, allocations: 113 kB / 360.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.122, allocations: 0 / 360.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.122, allocations: 11.98 kB / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.122, allocations: 0 / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.281e-05/0.1221, allocations: 23.92 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003394/0.1225, allocations: 269.7 kB / 360.8 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.1227, allocations: 142.3 kB / 360.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.1227, allocations: 4 kB / 360.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.1227, allocations: 30.56 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1227, allocations: 0 / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002551/0.123, allocations: 77.67 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/0.1231, allocations: 85.23 kB / 361.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1232, allocations: 136.3 kB / 361.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.1232, allocations: 29.64 kB / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.142e-05/0.1233, allocations: 92.05 kB / 361.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.1233, allocations: 3.938 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-06/0.1233, allocations: 0 / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1234, allocations: 318.8 kB / 361.7 MB, free: 10 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.894e-05/0.1235, allocations: 15.94 kB / 361.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.572e-05/0.1235, allocations: 35.42 kB / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.186e-05/0.1236, allocations: 15.94 kB / 361.8 MB, free: 9.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1236, allocations: 3.953 kB / 361.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001217/0.1237, allocations: 77.52 kB / 361.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1237, allocations: 4 kB / 361.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1238, allocations: 4 kB / 361.9 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1238, allocations: 0 / 361.9 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.603e-05/0.1238, allocations: 8 kB / 361.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.1239, allocations: 3.984 kB / 361.9 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.169e-05/0.1239, allocations: 12.06 kB / 361.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.1239, allocations: 4 kB / 361.9 MB, free: 9.805 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 7.945e-05/0.124, allocations: 113.8 kB / 362 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.724e-05/0.1241, allocations: 53.55 kB / 362 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.1241, allocations: 12.25 kB / 362.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1241, allocations: 0 / 362.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1241, allocations: 0 / 362.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1241, allocations: 0 / 362.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.1243, allocations: 169.7 kB / 362.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1243, allocations: 4 kB / 362.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.791e-05/0.1243, allocations: 15.94 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.1244, allocations: 0 / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.952e-06/0.1244, allocations: 0 / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.1244, allocations: 3.938 kB / 362.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1244, allocations: 4 kB / 362.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.1246, allocations: 178.4 kB / 362.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.862e-05/0.1246, allocations: 93 kB / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.1247, allocations: 0 / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.62e-05/0.1247, allocations: 4 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.1248, allocations: 8.031 kB / 362.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.1248, allocations: 3.984 kB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.074e-05/0.1248, allocations: 99.27 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1249, allocations: 8 kB / 362.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.1251, allocations: 4 kB / 362.6 MB, free: 8.93 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.0005005/0.1256, allocations: 0.7836 MB / 363.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001242/0.1257, allocations: 35.86 kB / 363.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1257, allocations: 3.938 kB / 363.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.069e-05/0.1258, allocations: 11.98 kB / 363.5 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.126, allocations: 21.02 kB / 363.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009063/0.127, allocations: 0.9193 MB / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.1273, allocations: 0.6887 MB / 365.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.491e-05/0.1273, allocations: 11.98 kB / 365.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.1273, allocations: 11.44 kB / 365.1 MB, free: 6.312 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1273, allocations: 0 / 365.1 MB, free: 6.312 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01152/0.1389, allocations: 1.234 MB / 366.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.1391, allocations: 185.6 kB / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/1.846, allocations: 0 / 366.5 MB, free: 4.977 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