Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",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.001033/0.001033, allocations: 173.1 kB / 15.81 MB, free: 6.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.4 MB / 222 MB, free: 13.84 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.001039/0.001039, allocations: 98.28 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1206/0.1206, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004433, allocations: 12.69 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1008, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.001565/0.1025, allocations: 1.243 MB / 443.7 MB, free: 9.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006693/0.1031, allocations: 0.4883 MB / 444.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.1033, allocations: 0 / 444.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.04e-05/0.1034, allocations: 7.922 kB / 444.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1035, allocations: 7.938 kB / 444.2 MB, free: 9.059 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.1038, allocations: 35.89 kB / 444.3 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.42e-05/0.1038, allocations: 39.86 kB / 444.3 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.732e-05/0.1039, allocations: 15.98 kB / 444.3 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.117e-05/0.104, allocations: 19.92 kB / 444.4 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.1041, allocations: 23.86 kB / 444.4 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.556e-05/0.1041, allocations: 0 / 444.4 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.217e-05/0.1041, allocations: 4 kB / 444.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.145e-05/0.1042, allocations: 4 kB / 444.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.1042, allocations: 37.64 kB / 444.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.034e-05/0.1043, allocations: 31.92 kB / 444.5 MB, free: 8.844 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1043, allocations: 0 / 444.5 MB, free: 8.844 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1043, allocations: 0 / 444.5 MB, free: 8.844 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1043, allocations: 0 / 444.5 MB, free: 8.844 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004199/0.1047, allocations: 375.8 kB / 444.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1048, allocations: 8.031 kB / 444.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.1048, allocations: 38.56 kB / 444.9 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.1048, allocations: 7.906 kB / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.105, allocations: 194.8 kB / 445.1 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.105, allocations: 4 kB / 445.1 MB, free: 8.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.105, allocations: 0 / 445.1 MB, free: 8.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.1053, allocations: 109 kB / 445.2 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1053, allocations: 0 / 445.2 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.1053, allocations: 4 kB / 445.2 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.1053, allocations: 0 / 445.2 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.1055, allocations: 23.98 kB / 445.2 MB, free: 7.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003158/0.1058, allocations: 265.6 kB / 445.5 MB, free: 7.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.612e-05/0.1059, allocations: 49.22 kB / 445.5 MB, free: 7.602 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.75e-05/0.106, allocations: 33.69 kB / 445.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.106, allocations: 0 / 445.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.106, allocations: 34.56 kB / 445.6 MB, free: 7.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.106, allocations: 0 / 445.6 MB, free: 7.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002316/0.1063, allocations: 77.73 kB / 445.7 MB, free: 7.438 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.1063, allocations: 77.11 kB / 445.7 MB, free: 7.344 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.299e-05/0.1064, allocations: 146 kB / 445.9 MB, free: 7.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.1064, allocations: 29.7 kB / 445.9 MB, free: 7.152 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.1065, allocations: 92.08 kB / 446 MB, free: 7.059 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.1065, allocations: 3.906 kB / 446 MB, free: 7.055 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/0.1065, allocations: 0 / 446 MB, free: 7.055 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.91e-05/0.1066, allocations: 314.9 kB / 446.3 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.007e-05/0.1066, allocations: 15.98 kB / 446.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.692e-05/0.1066, allocations: 21.7 kB / 446.3 MB, free: 6.695 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.394e-05/0.1067, allocations: 12 kB / 446.3 MB, free: 6.684 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1067, allocations: 3.938 kB / 446.4 MB, free: 6.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.774e-05/0.1068, allocations: 57.69 kB / 446.4 MB, free: 6.617 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.1068, allocations: 8 kB / 446.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1068, allocations: 0 / 446.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1069, allocations: 3.984 kB / 446.4 MB, free: 6.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.1069, allocations: 4 kB / 446.4 MB, free: 6.602 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1069, allocations: 7.953 kB / 446.4 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.608e-05/0.107, allocations: 4.062 kB / 446.4 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.107, allocations: 12 kB / 446.4 MB, free: 6.578 MB / 282.7 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 5.548e-05/0.1071, allocations: 121.5 kB / 446.6 MB, free: 6.449 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.524e-05/0.1071, allocations: 41.61 kB / 446.6 MB, free: 6.402 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.594e-05/0.1072, allocations: 11.81 kB / 446.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1072, allocations: 4 kB / 446.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1072, allocations: 0 / 446.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1072, allocations: 3.953 kB / 446.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.1073, allocations: 165.7 kB / 446.8 MB, free: 6.172 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1073, allocations: 4.031 kB / 446.8 MB, free: 6.168 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.523e-05/0.1074, allocations: 8 kB / 446.8 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1074, allocations: 0 / 446.8 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.1074, allocations: 0 / 446.8 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1074, allocations: 0 / 446.8 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1074, allocations: 4 kB / 446.8 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.1076, allocations: 172.2 kB / 447 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.1076, allocations: 93 kB / 447.1 MB, free: 5.859 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.1076, allocations: 4 kB / 447.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.932e-05/0.1077, allocations: 0 / 447.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.1078, allocations: 4 kB / 447.1 MB, free: 5.852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.1078, allocations: 3.984 kB / 447.1 MB, free: 5.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.421e-05/0.1079, allocations: 107.2 kB / 447.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1079, allocations: 32 / 447.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000191/0.1081, allocations: 8 kB / 447.2 MB, free: 5.734 MB / 282.7 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.0003085/0.1084, allocations: 0.6898 MB / 447.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.1086, allocations: 27.98 kB / 447.9 MB, free: 4.988 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1086, allocations: 3.938 kB / 447.9 MB, free: 4.984 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.74e-05/0.1086, allocations: 11.98 kB / 447.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.109, allocations: 23.66 kB / 447.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006488/0.1096, allocations: 0.4908 MB / 448.4 MB, free: 4.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.1098, allocations: 0.6848 MB / 449.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.998e-05/0.1098, allocations: 7.906 kB / 449.1 MB, free: 3.691 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.1098, allocations: 11.5 kB / 449.1 MB, free: 3.68 MB / 282.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1099, allocations: 0 / 449.1 MB, free: 3.68 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01286/0.1227, allocations: 1.317 MB / 450.5 MB, free: 2.375 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/0.1229, allocations: 218 kB / 450.7 MB, free: 2.125 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/1.749, allocations: 0 / 450.7 MB, free: 2.125 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat does not exist to compare? outputFormat=mat