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.002331/0.002331, allocations: 187.2 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.373/2.373, allocations: 205.4 MB / 221.9 MB, free: 13.7 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.001169/0.001169, allocations: 94.86 kB / 270.3 MB, free: 13.22 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.1032/0.1032, allocations: 12.6 MB / 331.1 MB, free: 10.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009131/0.0009134, allocations: 13.5 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1076, allocations: 50.38 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.001932/0.1096, allocations: 1.24 MB / 443.7 MB, free: 9.547 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009926/0.1107, allocations: 485 kB / 444.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.986e-05/0.1108, allocations: 4 kB / 444.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.854e-05/0.1108, allocations: 3.938 kB / 444.2 MB, free: 9.059 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.111, allocations: 7.984 kB / 444.2 MB, free: 9.051 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.1113, allocations: 39.83 kB / 444.2 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.34e-05/0.1114, allocations: 31.95 kB / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.1115, allocations: 16 kB / 444.3 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.125e-05/0.1116, allocations: 23.84 kB / 444.3 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.073e-05/0.1117, allocations: 15.92 kB / 444.3 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.1117, allocations: 0 / 444.3 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.471e-05/0.1117, allocations: 0 / 444.3 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.523e-05/0.1118, allocations: 11.94 kB / 444.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.313e-05/0.1118, allocations: 29.7 kB / 444.4 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.203e-05/0.1119, allocations: 39.92 kB / 444.4 MB, free: 8.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1119, allocations: 0 / 444.4 MB, free: 8.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1119, allocations: 0 / 444.4 MB, free: 8.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.1119, allocations: 7.875 kB / 444.4 MB, free: 8.832 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.0004965/0.1124, allocations: 375.8 kB / 444.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1125, allocations: 8.031 kB / 444.8 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.223e-05/0.1125, allocations: 30.56 kB / 444.8 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.1126, allocations: 7.906 kB / 444.8 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.1128, allocations: 194.9 kB / 445 MB, free: 8.133 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.1128, allocations: 0 / 445 MB, free: 8.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.1128, allocations: 4 kB / 445 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.1131, allocations: 109 kB / 445.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1131, allocations: 0 / 445.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.1132, allocations: 0 / 445.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.1132, allocations: 4 kB / 445.1 MB, free: 8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.1133, allocations: 27.92 kB / 445.2 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002834/0.1136, allocations: 261.7 kB / 445.4 MB, free: 7.664 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.863e-05/0.1137, allocations: 45.16 kB / 445.5 MB, free: 7.602 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1138, allocations: 4 kB / 445.5 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.1138, allocations: 38.61 kB / 445.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.553e-06/0.1138, allocations: 0 / 445.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003028/0.1141, allocations: 73.53 kB / 445.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.1142, allocations: 81.36 kB / 445.7 MB, free: 7.375 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1143, allocations: 142.1 kB / 445.8 MB, free: 7.223 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.1143, allocations: 25.7 kB / 445.8 MB, free: 7.191 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.1144, allocations: 96.06 kB / 445.9 MB, free: 7.094 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.1144, allocations: 7.906 kB / 445.9 MB, free: 7.086 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-06/0.1144, allocations: 0 / 445.9 MB, free: 7.086 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.085e-05/0.1145, allocations: 314.8 kB / 446.2 MB, free: 6.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.054e-05/0.1145, allocations: 8 kB / 446.2 MB, free: 6.762 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.239e-05/0.1146, allocations: 33.64 kB / 446.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.362e-05/0.1147, allocations: 8 kB / 446.3 MB, free: 6.715 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1147, allocations: 0 / 446.3 MB, free: 6.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001658/0.1149, allocations: 61.73 kB / 446.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1149, allocations: 4 kB / 446.3 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1149, allocations: 7.938 kB / 446.4 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.115, allocations: 0 / 446.4 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.195e-05/0.1151, allocations: 4 kB / 446.4 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1151, allocations: 11.94 kB / 446.4 MB, free: 6.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.848e-05/0.1151, allocations: 7.984 kB / 446.4 MB, free: 6.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.1152, allocations: 0 / 446.4 MB, free: 6.613 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 7.432e-05/0.1152, allocations: 121.7 kB / 446.5 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.611e-05/0.1153, allocations: 45.59 kB / 446.5 MB, free: 6.434 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/0.1154, allocations: 11.83 kB / 446.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1154, allocations: 0 / 446.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1154, allocations: 3.938 kB / 446.6 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1154, allocations: 7.953 kB / 446.6 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.1156, allocations: 165.7 kB / 446.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1156, allocations: 0 / 446.7 MB, free: 6.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.156e-05/0.1157, allocations: 11.92 kB / 446.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.1157, allocations: 8.031 kB / 446.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.1157, allocations: 0 / 446.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1157, allocations: 0 / 446.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1157, allocations: 0 / 446.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001945/0.1159, allocations: 182 kB / 446.9 MB, free: 5.977 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.116, allocations: 96.98 kB / 447 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.116, allocations: 0 / 447 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.698e-05/0.1161, allocations: 7.984 kB / 447 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.1162, allocations: 0 / 447 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.1162, allocations: 7.953 kB / 447 MB, free: 5.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.491e-05/0.1163, allocations: 107.2 kB / 447.1 MB, free: 5.742 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1163, allocations: 3.938 kB / 447.1 MB, free: 5.738 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002975/0.1166, allocations: 4 kB / 447.1 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.0003916/0.117, allocations: 0.772 MB / 447.9 MB, free: 4.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.1172, allocations: 31.95 kB / 447.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1172, allocations: 0 / 447.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.23e-05/0.1173, allocations: 8 kB / 448 MB, free: 4.891 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.1176, allocations: 27.72 kB / 448 MB, free: 4.867 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009138/0.1186, allocations: 0.6265 MB / 448.6 MB, free: 4.188 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.1187, allocations: 0.6944 MB / 449.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.925e-05/0.1188, allocations: 0 / 449.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.1188, allocations: 19.48 kB / 449.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1188, allocations: 0 / 449.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.136, allocations: 1.295 MB / 450.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/0.1362, allocations: 208 kB / 450.8 MB, free: 1.918 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.415/2.551, allocations: 0 / 450.8 MB, free: 1.918 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