Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample",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.001237/0.001237, allocations: 179 kB / 15.81 MB, free: 6.055 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.686/1.686, allocations: 205.4 MB / 222 MB, free: 13.8 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.000851/0.0008513, allocations: 94.27 kB / 270.3 MB, free: 13.33 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.08077/0.08077, allocations: 12.6 MB / 331.2 MB, free: 10.26 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004296/0.0004297, allocations: 16.91 kB / 392.1 MB, free: 54.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.09915, allocations: 50.38 MB / 442.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.001592/0.1008, allocations: 1.243 MB / 443.7 MB, free: 9.512 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008339/0.1017, allocations: 0.5078 MB / 444.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.392e-05/0.1018, allocations: 0 / 444.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.439e-05/0.1018, allocations: 3.938 kB / 444.3 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.102, allocations: 11.92 kB / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.1022, allocations: 39.91 kB / 444.3 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.822e-05/0.1023, allocations: 39.84 kB / 444.3 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.1025, allocations: 16.19 kB / 444.4 MB, free: 8.887 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.539e-05/0.1025, allocations: 27.84 kB / 444.4 MB, free: 8.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.158e-05/0.1026, allocations: 15.92 kB / 444.4 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.618e-05/0.1026, allocations: 0 / 444.4 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.269e-05/0.1026, allocations: 0 / 444.4 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.056e-05/0.1027, allocations: 11.94 kB / 444.4 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.476e-05/0.1027, allocations: 37.64 kB / 444.5 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.32e-05/0.1028, allocations: 35.92 kB / 444.5 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1028, allocations: 0 / 444.5 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1028, allocations: 0 / 444.5 MB, free: 8.754 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1028, allocations: 0 / 444.5 MB, free: 8.754 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.0004625/0.1033, allocations: 375.8 kB / 444.9 MB, free: 8.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1034, allocations: 8.031 kB / 444.9 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.64e-05/0.1034, allocations: 34.56 kB / 444.9 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.1034, allocations: 7.906 kB / 444.9 MB, free: 8.281 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.1038, allocations: 186.9 kB / 445.1 MB, free: 8.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.1038, allocations: 4 kB / 445.1 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.1038, allocations: 4 kB / 445.1 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.1041, allocations: 117 kB / 445.2 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1041, allocations: 0 / 445.2 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.1041, allocations: 0 / 445.2 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1041, allocations: 3.984 kB / 445.2 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.718e-05/0.1042, allocations: 27.98 kB / 445.2 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002918/0.1045, allocations: 269.7 kB / 445.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.547e-05/0.1046, allocations: 41.16 kB / 445.5 MB, free: 7.512 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.779e-05/0.1047, allocations: 29.77 kB / 445.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.1047, allocations: 3.984 kB / 445.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.1047, allocations: 34.5 kB / 445.6 MB, free: 7.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1047, allocations: 0 / 445.6 MB, free: 7.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002558/0.105, allocations: 77.8 kB / 445.7 MB, free: 7.348 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.105, allocations: 81.05 kB / 445.8 MB, free: 7.25 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.403e-05/0.1051, allocations: 153.5 kB / 445.9 MB, free: 7.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.677e-06/0.1052, allocations: 25.7 kB / 445.9 MB, free: 7.059 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.485e-05/0.1052, allocations: 88.14 kB / 446 MB, free: 6.969 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.1052, allocations: 11.84 kB / 446 MB, free: 6.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.1052, allocations: 0 / 446 MB, free: 6.957 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.309e-05/0.1053, allocations: 318.9 kB / 446.4 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.858e-05/0.1053, allocations: 12 kB / 446.4 MB, free: 6.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.675e-05/0.1054, allocations: 21.7 kB / 446.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.91e-05/0.1054, allocations: 8 kB / 446.4 MB, free: 6.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1054, allocations: 3.938 kB / 446.4 MB, free: 6.586 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001013/0.1055, allocations: 65.67 kB / 446.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.1056, allocations: 4 kB / 446.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1056, allocations: 0 / 446.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1056, allocations: 4 kB / 446.5 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.195e-05/0.1057, allocations: 4 kB / 446.5 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.1057, allocations: 3.953 kB / 446.5 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.761e-05/0.1057, allocations: 8.062 kB / 446.5 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.1057, allocations: 4 kB / 446.5 MB, free: 6.488 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 6.185e-05/0.1058, allocations: 117.6 kB / 446.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.1059, allocations: 45.55 kB / 446.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.091e-05/0.1059, allocations: 15.81 kB / 446.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1059, allocations: 0 / 446.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1059, allocations: 0 / 446.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1059, allocations: 7.953 kB / 446.7 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.106, allocations: 165.7 kB / 446.8 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.1061, allocations: 4.031 kB / 446.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.774e-05/0.1062, allocations: 4 kB / 446.8 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.1062, allocations: 4 kB / 446.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1062, allocations: 0 / 446.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1063, allocations: 3.984 kB / 446.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1063, allocations: 0 / 446.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.1064, allocations: 172.2 kB / 447 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.1064, allocations: 93 kB / 447.1 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1065, allocations: 0 / 447.1 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.512e-05/0.1065, allocations: 4 kB / 447.1 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.1066, allocations: 3.984 kB / 447.1 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.1066, allocations: 4 kB / 447.1 MB, free: 5.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.914e-05/0.1066, allocations: 107.2 kB / 447.2 MB, free: 5.648 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1066, allocations: 4.031 kB / 447.2 MB, free: 5.645 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002064/0.1068, allocations: 7.984 kB / 447.2 MB, free: 5.637 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.0002942/0.1071, allocations: 0.686 MB / 447.9 MB, free: 4.922 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001152/0.1073, allocations: 27.92 kB / 447.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1073, allocations: 0 / 447.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.581e-05/0.1073, allocations: 15.92 kB / 448 MB, free: 4.879 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1077, allocations: 23.77 kB / 448 MB, free: 4.859 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006592/0.1083, allocations: 0.5016 MB / 448.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.1086, allocations: 0.6927 MB / 449.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.616e-05/0.1086, allocations: 0 / 449.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.525e-05/0.1087, allocations: 19.42 kB / 449.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of SimCode: time 2e-07/0.1087, allocations: 0 / 449.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.1218, allocations: 1.38 MB / 450.6 MB, free: 2.199 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.122, allocations: 212.5 kB / 450.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/1.817, allocations: 0 / 450.8 MB, free: 1.957 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat