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.001054/0.001054, allocations: 171.6 kB / 16.15 MB, free: 5.652 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.446/1.446, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0008455/0.0008455, allocations: 98.28 kB / 270.7 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07929/0.07929, allocations: 12.59 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003722, allocations: 16 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.09963, allocations: 50.37 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.001549/0.1013, allocations: 1.258 MB / 444.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006792/0.1019, allocations: 0.4919 MB / 444.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.952e-05/0.102, allocations: 0 / 444.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.879e-05/0.1021, allocations: 7.922 kB / 444.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.1023, allocations: 7.938 kB / 444.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.1025, allocations: 43.91 kB / 445 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.28e-05/0.1026, allocations: 43.83 kB / 445 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.836e-05/0.1027, allocations: 12 kB / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.658e-05/0.1028, allocations: 23.86 kB / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.11e-05/0.1028, allocations: 15.88 kB / 445 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.1028, allocations: 4 kB / 445 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.1029, allocations: 0 / 445 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.773e-05/0.1029, allocations: 15.91 kB / 445.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.729e-05/0.1029, allocations: 49.52 kB / 445.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.923e-05/0.103, allocations: 48.08 kB / 445.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.103, allocations: 4 kB / 445.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1031, allocations: 0 / 445.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1031, allocations: 0 / 445.2 MB, free: 13.28 MB / 298.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.000351/0.1034, allocations: 363.2 kB / 445.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1035, allocations: 12.03 kB / 445.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.1035, allocations: 38.73 kB / 445.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.354e-05/0.1035, allocations: 12.84 kB / 445.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.1037, allocations: 204 kB / 445.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-06/0.1037, allocations: 384 / 445.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.1037, allocations: 4.375 kB / 445.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.1039, allocations: 109.2 kB / 445.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.104, allocations: 4 kB / 445.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.675e-06/0.104, allocations: 3.938 kB / 445.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.104, allocations: 4 kB / 445.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.263e-05/0.1041, allocations: 19.98 kB / 445.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002487/0.1043, allocations: 269.7 kB / 446.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.994e-05/0.1044, allocations: 41.2 kB / 446.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.964e-05/0.1045, allocations: 21.78 kB / 446.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.1045, allocations: 0 / 446.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.938e-05/0.1045, allocations: 42.5 kB / 446.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.1045, allocations: 0 / 446.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002469/0.1048, allocations: 73.52 kB / 446.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1048, allocations: 81.11 kB / 446.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.1049, allocations: 138.4 kB / 446.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.1049, allocations: 29.7 kB / 446.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.105, allocations: 92.12 kB / 446.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.105, allocations: 0 / 446.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-06/0.105, allocations: 0 / 446.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.913e-05/0.1051, allocations: 322.8 kB / 447 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.797e-05/0.1051, allocations: 8 kB / 447 MB, free: 11.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.603e-05/0.1052, allocations: 29.7 kB / 447 MB, free: 11.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.37e-05/0.1053, allocations: 33.64 kB / 447.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1053, allocations: 0 / 447.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.995e-05/0.1054, allocations: 61.66 kB / 447.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1054, allocations: 4 kB / 447.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1054, allocations: 0 / 447.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1054, allocations: 4 kB / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.323e-05/0.1055, allocations: 11.92 kB / 447.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.1055, allocations: 3.984 kB / 447.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.432e-05/0.1056, allocations: 7.938 kB / 447.2 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.1056, allocations: 0 / 447.2 MB, free: 11 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.1056, allocations: 125.8 kB / 447.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.1057, allocations: 41.61 kB / 447.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.1057, allocations: 11.83 kB / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1057, allocations: 0 / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1057, allocations: 0 / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1058, allocations: 3.984 kB / 447.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.1059, allocations: 173.6 kB / 447.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1059, allocations: 0 / 447.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.313e-05/0.1059, allocations: 7.984 kB / 447.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.106, allocations: 4 kB / 447.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.106, allocations: 4.031 kB / 447.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.106, allocations: 4 kB / 447.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.106, allocations: 3.938 kB / 447.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.1062, allocations: 172.2 kB / 447.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.1062, allocations: 93.03 kB / 447.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.1062, allocations: 4 kB / 447.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.325e-05/0.1063, allocations: 4 kB / 447.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.1063, allocations: 0 / 447.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1063, allocations: 0 / 447.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.635e-05/0.1064, allocations: 111.2 kB / 447.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1064, allocations: 0 / 447.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001922/0.1066, allocations: 4 kB / 447.9 MB, free: 10.14 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002929/0.1069, allocations: 0.6975 MB / 448.6 MB, free: 9.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.107, allocations: 28.08 kB / 448.6 MB, free: 9.391 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.107, allocations: 0 / 448.6 MB, free: 9.391 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.666e-05/0.1071, allocations: 11.94 kB / 448.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.1074, allocations: 20.02 kB / 448.7 MB, free: 9.359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.1085, allocations: 1.343 MB / 450 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.1086, allocations: 0.6927 MB / 450.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.03e-05/0.1087, allocations: 7.906 kB / 450.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.1087, allocations: 19.36 kB / 450.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1087, allocations: 0 / 450.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01085/0.1196, allocations: 1.309 MB / 452 MB, free: 5.867 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.1198, allocations: 221.8 kB / 452.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.767, allocations: 0 / 452.3 MB, free: 5.613 MB / 298.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