Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009952/0.0009953, allocations: 94.16 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.001202/0.001202, allocations: 205.2 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.405/1.405, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002578, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1204, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001732/0.1221, allocations: 1.254 MB / 359.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007942/0.1229, allocations: 491.1 kB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.082e-05/0.123, allocations: 0 / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.501e-05/0.1231, allocations: 3.984 kB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1232, allocations: 15.92 kB / 360 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.1235, allocations: 43.84 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.117e-05/0.1235, allocations: 31.95 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.729e-05/0.1236, allocations: 15.97 kB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.035e-05/0.1237, allocations: 19.92 kB / 360.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.396e-05/0.1238, allocations: 15.88 kB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1238, allocations: 7.984 kB / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.418e-05/0.1239, allocations: 0 / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.835e-05/0.1239, allocations: 11.98 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.529e-05/0.1239, allocations: 33.64 kB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.623e-05/0.124, allocations: 43.88 kB / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.124, allocations: 0 / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.124, allocations: 0 / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.145e-06/0.124, allocations: 0 / 360.2 MB, free: 11.77 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004175/0.1245, allocations: 367.3 kB / 360.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1245, allocations: 12.03 kB / 360.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.134e-05/0.1246, allocations: 38.55 kB / 360.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.1247, allocations: 23.84 kB / 360.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.1249, allocations: 186.9 kB / 360.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.1249, allocations: 4 kB / 360.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.1249, allocations: 0 / 360.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.1252, allocations: 113 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1252, allocations: 0 / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1252, allocations: 0 / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1252, allocations: 0 / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.245e-05/0.1253, allocations: 27.91 kB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002927/0.1256, allocations: 269.7 kB / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.197e-05/0.1257, allocations: 45.16 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.1257, allocations: 11.86 kB / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.1258, allocations: 30.56 kB / 361.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.1258, allocations: 0 / 361.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002264/0.126, allocations: 77.59 kB / 361.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.1261, allocations: 85.09 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.1262, allocations: 136.7 kB / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.1262, allocations: 25.7 kB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.1263, allocations: 84.39 kB / 361.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.1263, allocations: 11.89 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-06/0.1263, allocations: 4 kB / 361.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1265, allocations: 318.8 kB / 362 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.382e-05/0.1265, allocations: 8 kB / 362 MB, free: 9.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.106e-05/0.1266, allocations: 25.7 kB / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.343e-05/0.1266, allocations: 12.05 kB / 362.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1266, allocations: 0 / 362.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001138/0.1268, allocations: 61.62 kB / 362.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1268, allocations: 4 kB / 362.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1268, allocations: 0 / 362.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1268, allocations: 0 / 362.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-05/0.1269, allocations: 12.06 kB / 362.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1269, allocations: 3.984 kB / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.467e-05/0.1269, allocations: 4 kB / 362.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.127, allocations: 0 / 362.1 MB, free: 9.551 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 9.315e-05/0.1271, allocations: 121.7 kB / 362.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.1271, allocations: 41.59 kB / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.416e-05/0.1272, allocations: 11.83 kB / 362.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1272, allocations: 4 kB / 362.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1272, allocations: 4.031 kB / 362.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1272, allocations: 0 / 362.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.1274, allocations: 169.6 kB / 362.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1274, allocations: 4 kB / 362.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.742e-05/0.1274, allocations: 11.98 kB / 362.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1275, allocations: 0 / 362.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.1275, allocations: 0 / 362.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1275, allocations: 4 kB / 362.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1275, allocations: 0 / 362.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.1277, allocations: 181.9 kB / 362.7 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.347e-05/0.1278, allocations: 89 kB / 362.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.1278, allocations: 7.984 kB / 362.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.437e-05/0.1279, allocations: 4 kB / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.267e-05/0.1279, allocations: 8.031 kB / 362.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-06/0.1279, allocations: 0 / 362.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.945e-05/0.128, allocations: 111.2 kB / 362.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.128, allocations: 0 / 362.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002214/0.1282, allocations: 7.953 kB / 362.9 MB, free: 8.672 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 (2): * Single equations (assignments): 2 * 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.000577/0.1288, allocations: 0.7758 MB / 363.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.129, allocations: 23.98 kB / 363.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.129, allocations: 160 / 363.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.512e-05/0.129, allocations: 12 kB / 363.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.1293, allocations: 23.91 kB / 363.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009718/0.1303, allocations: 0.6333 MB / 364.4 MB, free: 7.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.1306, allocations: 0.6887 MB / 365.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.064e-05/0.1307, allocations: 7.984 kB / 365.1 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.755e-05/0.1307, allocations: 15.5 kB / 365.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1307, allocations: 0 / 365.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01107/0.1418, allocations: 1.273 MB / 366.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.142, allocations: 202 kB / 366.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/1.774, allocations: 0 / 366.5 MB, free: 4.996 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat does not exist to compare? outputFormat=mat