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.002078/0.002078, allocations: 178.1 kB / 8.047 MB, free: 1.02 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.135/2.135, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001127/0.001127, allocations: 95.17 kB / 261.8 MB, free: 13.45 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.109/0.109, allocations: 12.58 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.499e-05, allocations: 4 kB / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09813, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4632/0.5614, allocations: 77.57 MB / 0.4951 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.5618, allocations: 79.75 kB / 0.4952 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005536/0.5673, allocations: 1.436 MB / 0.4966 GB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5674, allocations: 0 / 0.4966 GB, free: 11.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.5674, allocations: 4 kB / 0.4966 GB, free: 11.38 MB / 330.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.0003497/0.5678, allocations: 351.8 kB / 0.4969 GB, free: 11.03 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.5678, allocations: 11.69 kB / 0.4969 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.5679, allocations: 23.25 kB / 0.4969 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.5681, allocations: 180.2 kB / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.5682, allocations: 3.844 kB / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.5682, allocations: 0 / 0.4971 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001024/0.5683, allocations: 22.78 kB / 0.4971 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.5685, allocations: 98.84 kB / 0.4972 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5686, allocations: 0 / 0.4972 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.5686, allocations: 0 / 0.4972 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.5686, allocations: 3.844 kB / 0.4972 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005471/0.5692, allocations: 249.3 kB / 0.4975 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.467e-05/0.5693, allocations: 40.34 kB / 0.4975 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.617e-05/0.5694, allocations: 13.56 kB / 0.4975 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.5694, allocations: 3.672 kB / 0.4975 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.5695, allocations: 38.06 kB / 0.4976 GB, free: 10.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 4.158e-06/0.5695, allocations: 0 / 0.4976 GB, free: 10.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002991/0.5698, allocations: 48 kB / 0.4976 GB, free: 10.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.5699, allocations: 80.11 kB / 0.4977 GB, free: 10.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.5701, allocations: 129.6 kB / 0.4978 GB, free: 10.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.5701, allocations: 25.7 kB / 0.4978 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.557e-05/0.5702, allocations: 86.14 kB / 0.4979 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.5702, allocations: 11.41 kB / 0.4979 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-06/0.5702, allocations: 0 / 0.4979 GB, free: 10.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.333e-05/0.5703, allocations: 322.3 kB / 0.4982 GB, free: 9.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.918e-05/0.5704, allocations: 7.594 kB / 0.4982 GB, free: 9.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.397e-05/0.5704, allocations: 9.719 kB / 0.4983 GB, free: 9.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.313e-05/0.5705, allocations: 3.844 kB / 0.4983 GB, free: 9.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.5705, allocations: 0 / 0.4983 GB, free: 9.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001715/0.5707, allocations: 56.12 kB / 0.4983 GB, free: 9.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.5708, allocations: 3.875 kB / 0.4983 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.5708, allocations: 7.75 kB / 0.4983 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.5708, allocations: 0 / 0.4983 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.571, allocations: 10.3 kB / 0.4983 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.571, allocations: 0 / 0.4983 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.907e-05/0.5711, allocations: 3.875 kB / 0.4983 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.5712, allocations: 0 / 0.4983 GB, free: 9.652 MB / 330.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 () * 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 8.209e-05/0.5712, allocations: 115.8 kB / 0.4984 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001638/0.5714, allocations: 51.98 kB / 0.4985 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.386e-05/0.5715, allocations: 7.562 kB / 0.4985 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.265e-05/0.5716, allocations: 11.19 kB / 0.4985 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-06/0.5716, allocations: 0 / 0.4985 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.5716, allocations: 0 / 0.4985 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5717, allocations: 0 / 0.4985 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002911/0.572, allocations: 153.6 kB / 0.4987 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.572, allocations: 0 / 0.4987 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.5721, allocations: 7.812 kB / 0.4987 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.5721, allocations: 3.719 kB / 0.4987 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.5722, allocations: 3.094 kB / 0.4987 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.5722, allocations: 2.688 kB / 0.4987 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.5722, allocations: 0 / 0.4987 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001925/0.5724, allocations: 170.9 kB / 0.4988 GB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.043e-05/0.5725, allocations: 83.11 kB / 0.4989 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.5726, allocations: 2.484 kB / 0.4989 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.5728, allocations: 3.719 kB / 0.4989 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.5729, allocations: 3.188 kB / 0.4989 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.5729, allocations: 3.656 kB / 0.4989 GB, free: 9.066 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001216/0.573, allocations: 104.1 kB / 0.499 GB, free: 8.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.573, allocations: 0 / 0.499 GB, free: 8.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007677/0.5738, allocations: 7.797 kB / 0.499 GB, free: 8.988 MB / 330.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 () * 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.0004475/0.5743, allocations: 0.7667 MB / 0.4998 GB, free: 8.227 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.5744, allocations: 11 kB / 0.4998 GB, free: 8.227 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5745, allocations: 160 / 0.4998 GB, free: 8.227 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.167e-05/0.5745, allocations: 7.875 kB / 0.4998 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.575, allocations: 20.5 kB / 0.4998 GB, free: 8.219 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008072/0.5759, allocations: 125.5 kB / 0.4999 GB, free: 8.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.5761, allocations: 0.6975 MB / 0.5006 GB, free: 7.387 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.336e-05/0.5762, allocations: 9.984 kB / 0.5006 GB, free: 7.383 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.146e-05/0.5763, allocations: 14.59 kB / 0.5006 GB, free: 7.379 MB / 330.7 MB Notification: Performance of SimCode: time 1.824e-06/0.5764, allocations: 7.844 kB / 0.5007 GB, free: 7.375 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03651/0.6129, allocations: 1.006 MB / 0.5016 GB, free: 7.305 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/0.6132, allocations: 162.6 kB / 0.5018 GB, free: 7.117 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.55/3.164, allocations: 0 / 0.5018 GB, free: 7.117 MB / 330.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