Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",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.001556/0.001555, allocations: 181.3 kB / 15.8 MB, free: 6.336 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.028/2.028, 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.001541/0.001541, allocations: 94.84 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.09759/0.09759, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000565/0.000565, allocations: 17.81 kB / 392.1 MB, free: 54.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09468, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.139/0.2338, allocations: 77.62 MB / 0.5079 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/0.2341, allocations: 75.95 kB / 0.508 GB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00391/0.2381, allocations: 1.069 MB / 0.509 GB, free: 11.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2381, allocations: 0 / 0.509 GB, free: 11.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.2381, allocations: 4 kB / 0.509 GB, free: 11.93 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004554/0.2386, allocations: 355.2 kB / 0.5094 GB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.2387, allocations: 12.03 kB / 0.5094 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.515e-05/0.2387, allocations: 34.56 kB / 0.5094 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.2388, allocations: 7.906 kB / 0.5094 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.239, allocations: 193.6 kB / 0.5096 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.239, allocations: 7.953 kB / 0.5096 GB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.239, allocations: 0 / 0.5096 GB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.2393, allocations: 93.05 kB / 0.5097 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2394, allocations: 0 / 0.5097 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.2394, allocations: 0 / 0.5097 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.2394, allocations: 0 / 0.5097 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.2395, allocations: 23.98 kB / 0.5097 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004145/0.24, allocations: 261.8 kB / 0.51 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.2401, allocations: 53.14 kB / 0.51 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.2401, allocations: 0 / 0.51 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.2402, allocations: 30.56 kB / 0.51 GB, free: 10.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.2402, allocations: 0 / 0.51 GB, free: 10.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003295/0.2405, allocations: 77.67 kB / 0.5101 GB, free: 10.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.2406, allocations: 77.11 kB / 0.5102 GB, free: 10.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.2408, allocations: 125.2 kB / 0.5103 GB, free: 10.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.2408, allocations: 29.64 kB / 0.5103 GB, free: 10.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.2409, allocations: 80.14 kB / 0.5104 GB, free: 10.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.472e-05/0.2409, allocations: 7.906 kB / 0.5104 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.2409, allocations: 0 / 0.5104 GB, free: 10.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.241, allocations: 319 kB / 0.5107 GB, free: 9.938 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.105e-05/0.2411, allocations: 7.984 kB / 0.5107 GB, free: 9.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.846e-05/0.2412, allocations: 21.72 kB / 0.5108 GB, free: 9.902 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.116e-05/0.2413, allocations: 15.94 kB / 0.5108 GB, free: 9.887 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2413, allocations: 4.062 kB / 0.5108 GB, free: 9.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001864/0.2415, allocations: 57.62 kB / 0.5108 GB, free: 9.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.2415, allocations: 4 kB / 0.5108 GB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.2416, allocations: 0 / 0.5108 GB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.2416, allocations: 3.938 kB / 0.5108 GB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.364e-05/0.2417, allocations: 11.98 kB / 0.5109 GB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.2417, allocations: 0 / 0.5109 GB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.943e-05/0.2418, allocations: 4.062 kB / 0.5109 GB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-06/0.2418, allocations: 4 kB / 0.5109 GB, free: 9.793 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: 2 (sample.u,sample.y) * 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.0001245/0.2419, allocations: 125.5 kB / 0.511 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.242, allocations: 41.59 kB / 0.511 GB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.892e-05/0.2421, allocations: 7.875 kB / 0.511 GB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.2421, allocations: 0 / 0.511 GB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2421, allocations: 7.938 kB / 0.511 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2421, allocations: 0 / 0.511 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.2424, allocations: 165.6 kB / 0.5112 GB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2424, allocations: 7.984 kB / 0.5112 GB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.2425, allocations: 4 kB / 0.5112 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2425, allocations: 4 kB / 0.5112 GB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.2425, allocations: 0 / 0.5112 GB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2425, allocations: 0 / 0.5112 GB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.2425, allocations: 7.984 kB / 0.5112 GB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.2428, allocations: 178 kB / 0.5114 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.892e-05/0.2429, allocations: 89.09 kB / 0.5115 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.2429, allocations: 0 / 0.5115 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.759e-05/0.243, allocations: 7.984 kB / 0.5115 GB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.2431, allocations: 3.938 kB / 0.5115 GB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.2431, allocations: 0 / 0.5115 GB, free: 9.051 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.2432, allocations: 111.3 kB / 0.5116 GB, free: 8.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2432, allocations: 0 / 0.5116 GB, free: 8.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002726/0.2435, allocations: 4 kB / 0.5116 GB, free: 8.938 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: 2 (sample.u,sample.y) * 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.0006657/0.2442, allocations: 0.7694 MB / 0.5123 GB, free: 8.137 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.2444, allocations: 23.92 kB / 0.5124 GB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2444, allocations: 3.938 kB / 0.5124 GB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.455e-05/0.2445, allocations: 12 kB / 0.5124 GB, free: 8.098 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.2448, allocations: 27.94 kB / 0.5124 GB, free: 8.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.2459, allocations: 0.5697 MB / 0.513 GB, free: 7.449 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.2463, allocations: 0.6887 MB / 0.5136 GB, free: 6.734 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.738e-05/0.2464, allocations: 3.906 kB / 0.5136 GB, free: 6.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.316e-05/0.2464, allocations: 19.42 kB / 0.5137 GB, free: 6.711 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.2464, allocations: 0 / 0.5137 GB, free: 6.711 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.2683, allocations: 1.147 MB / 0.5148 GB, free: 5.574 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003372/0.2687, allocations: 219.8 kB / 0.515 GB, free: 5.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.285/2.554, allocations: 0 / 0.515 GB, free: 5.32 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat