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.002951/0.002952, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.195/2.195, allocations: 205.4 MB / 221.9 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.001145/0.001144, allocations: 90.86 kB / 270.3 MB, free: 13.37 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.09656/0.09656, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005815/0.0005815, allocations: 13.47 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09725, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.2407, allocations: 78.32 MB / 0.5086 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.241, allocations: 79.95 kB / 0.5087 GB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006046/0.2471, allocations: 1.449 MB / 0.5101 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2471, allocations: 0 / 0.5101 GB, free: 10.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.2472, allocations: 4 kB / 0.5101 GB, free: 10.88 MB / 362.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.0005317/0.2477, allocations: 374.9 kB / 0.5104 GB, free: 10.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.2478, allocations: 8.031 kB / 0.5104 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.108e-05/0.2478, allocations: 34.56 kB / 0.5105 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.2479, allocations: 7.906 kB / 0.5105 GB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.2481, allocations: 194.8 kB / 0.5107 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.2482, allocations: 4 kB / 0.5107 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.2482, allocations: 8 kB / 0.5107 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.2485, allocations: 105 kB / 0.5108 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.2486, allocations: 0 / 0.5108 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.2486, allocations: 0 / 0.5108 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2486, allocations: 8 kB / 0.5108 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.2487, allocations: 19.98 kB / 0.5108 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.2492, allocations: 269.7 kB / 0.5111 GB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.2494, allocations: 49.2 kB / 0.5111 GB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.078e-05/0.2494, allocations: 4 kB / 0.5111 GB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.2495, allocations: 34.5 kB / 0.5112 GB, free: 9.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.724e-06/0.2495, allocations: 0 / 0.5112 GB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003615/0.2499, allocations: 77.67 kB / 0.5112 GB, free: 9.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.25, allocations: 77.11 kB / 0.5113 GB, free: 9.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.2501, allocations: 132.8 kB / 0.5114 GB, free: 9.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.2502, allocations: 25.7 kB / 0.5115 GB, free: 9.238 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.2502, allocations: 88.14 kB / 0.5115 GB, free: 9.148 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.2503, allocations: 7.844 kB / 0.5115 GB, free: 9.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.2503, allocations: 4.156 kB / 0.5115 GB, free: 9.137 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2504, allocations: 322.8 kB / 0.5119 GB, free: 8.812 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.595e-05/0.2505, allocations: 8 kB / 0.5119 GB, free: 8.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.552e-05/0.2506, allocations: 25.7 kB / 0.5119 GB, free: 8.773 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.991e-05/0.2507, allocations: 8.062 kB / 0.5119 GB, free: 8.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2507, allocations: 7.938 kB / 0.5119 GB, free: 8.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001969/0.2509, allocations: 61.61 kB / 0.512 GB, free: 8.691 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2509, allocations: 4 kB / 0.512 GB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.251, allocations: 0 / 0.512 GB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.251, allocations: 4 kB / 0.512 GB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.642e-05/0.2511, allocations: 4 kB / 0.512 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2511, allocations: 0 / 0.512 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.2512, allocations: 13.58 kB / 0.512 GB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.2512, allocations: 4 kB / 0.512 GB, free: 8.664 MB / 362.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 0.0001155/0.2513, allocations: 125.5 kB / 0.5121 GB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.2514, allocations: 45.55 kB / 0.5122 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.2515, allocations: 11.86 kB / 0.5122 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2515, allocations: 0 / 0.5122 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2515, allocations: 0 / 0.5122 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2515, allocations: 4 kB / 0.5122 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.2518, allocations: 173.6 kB / 0.5123 GB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2518, allocations: 0 / 0.5123 GB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.2519, allocations: 8 kB / 0.5123 GB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.2519, allocations: 3.984 kB / 0.5123 GB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.2519, allocations: 0 / 0.5123 GB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2519, allocations: 0 / 0.5123 GB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2519, allocations: 0 / 0.5123 GB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.2522, allocations: 185.9 kB / 0.5125 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.972e-05/0.2523, allocations: 93 kB / 0.5126 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2523, allocations: 0 / 0.5126 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.2524, allocations: 7.984 kB / 0.5126 GB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.2525, allocations: 0 / 0.5126 GB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.2525, allocations: 4 kB / 0.5126 GB, free: 7.906 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001107/0.2526, allocations: 111.3 kB / 0.5127 GB, free: 7.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.545e-06/0.2526, allocations: 0 / 0.5127 GB, free: 7.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002775/0.2529, allocations: 11.89 kB / 0.5127 GB, free: 7.785 MB / 362.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.0006489/0.2536, allocations: 0.7719 MB / 0.5135 GB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001865/0.2538, allocations: 23.98 kB / 0.5135 GB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2538, allocations: 0 / 0.5135 GB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.998e-05/0.2539, allocations: 12.16 kB / 0.5135 GB, free: 6.945 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.2542, allocations: 31.72 kB / 0.5136 GB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.2554, allocations: 0.6299 MB / 0.5142 GB, free: 6.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.2558, allocations: 0.6965 MB / 0.5149 GB, free: 5.504 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.63e-05/0.2558, allocations: 4 kB / 0.5149 GB, free: 5.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.727e-05/0.2559, allocations: 15.44 kB / 0.5149 GB, free: 5.488 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2559, allocations: 0 / 0.5149 GB, free: 5.488 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.275, allocations: 1.353 MB / 0.5162 GB, free: 4.141 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/0.2753, allocations: 203.7 kB / 0.5164 GB, free: 3.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.589, allocations: 0 / 0.5164 GB, free: 3.898 MB / 362.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