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.001364/0.001364, allocations: 172.4 kB / 16.14 MB, free: 5.656 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.488/1.488, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0009301/0.0009302, allocations: 82.36 kB / 270.6 MB, free: 8.246 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.0877/0.0877, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003705, allocations: 12 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09316, allocations: 50.37 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.001659/0.09487, allocations: 1.261 MB / 444.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007862/0.09569, allocations: 0.5153 MB / 444.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.09582, allocations: 0 / 444.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.699e-05/0.09587, allocations: 0 / 444.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.09601, allocations: 15.86 kB / 444.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.09629, allocations: 43.84 kB / 445 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.355e-05/0.09638, allocations: 43.86 kB / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.0965, allocations: 28.09 kB / 445 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.712e-05/0.09658, allocations: 11.94 kB / 445.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.989e-05/0.09664, allocations: 19.86 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.09666, allocations: 4 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.157e-05/0.09668, allocations: 0 / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.09673, allocations: 19.91 kB / 445.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.577e-05/0.09677, allocations: 45.52 kB / 445.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.295e-05/0.09687, allocations: 44.09 kB / 445.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.09688, allocations: 8 kB / 445.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.09689, allocations: 0 / 445.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.0969, allocations: 0 / 445.2 MB, free: 13.24 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.0004086/0.09732, allocations: 367.1 kB / 445.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.09737, allocations: 12.03 kB / 445.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.09741, allocations: 34.75 kB / 445.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.555e-05/0.09744, allocations: 12.83 kB / 445.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.09759, allocations: 200 kB / 445.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.09761, allocations: 4.375 kB / 445.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.978e-06/0.09763, allocations: 4.375 kB / 445.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.09787, allocations: 109 kB / 445.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.09789, allocations: 0 / 445.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.0979, allocations: 8 kB / 445.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.09791, allocations: 4 kB / 445.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.242e-05/0.09799, allocations: 19.92 kB / 446 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002511/0.09825, allocations: 261.8 kB / 446.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.338e-05/0.09833, allocations: 53.14 kB / 446.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.44e-05/0.09838, allocations: 17.78 kB / 446.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.09841, allocations: 4 kB / 446.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.09843, allocations: 34.56 kB / 446.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.844e-06/0.09844, allocations: 0 / 446.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002289/0.09868, allocations: 81.45 kB / 446.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.09872, allocations: 77.11 kB / 446.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.111e-05/0.09881, allocations: 149.6 kB / 446.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.09883, allocations: 25.7 kB / 446.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.359e-05/0.09887, allocations: 88.39 kB / 446.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.408e-05/0.09889, allocations: 11.91 kB / 446.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.0989, allocations: 0 / 446.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.763e-05/0.09895, allocations: 322.8 kB / 447.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.683e-05/0.099, allocations: 8 kB / 447.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.509e-05/0.09904, allocations: 25.7 kB / 447.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.812e-05/0.09911, allocations: 37.64 kB / 447.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.09912, allocations: 0 / 447.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001043/0.09923, allocations: 61.62 kB / 447.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.09925, allocations: 4 kB / 447.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.09926, allocations: 4.062 kB / 447.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.09928, allocations: 0 / 447.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.812e-05/0.09935, allocations: 11.98 kB / 447.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.09937, allocations: 0 / 447.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.432e-05/0.09941, allocations: 4 kB / 447.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.09942, allocations: 0 / 447.2 MB, free: 10.95 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.037e-05/0.09948, allocations: 122.6 kB / 447.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.776e-05/0.09954, allocations: 41.61 kB / 447.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.09957, allocations: 15.86 kB / 447.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.09958, allocations: 0 / 447.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.09959, allocations: 3.984 kB / 447.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.0996, allocations: 3.984 kB / 447.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.09972, allocations: 181.5 kB / 447.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.09973, allocations: 0 / 447.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.39e-05/0.09978, allocations: 4 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.09979, allocations: 0 / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.0998, allocations: 4 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.0998, allocations: 0 / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.09981, allocations: 4 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.09995, allocations: 168.2 kB / 447.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.1, allocations: 93 kB / 447.8 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1, allocations: 0 / 447.8 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.383e-05/0.1001, allocations: 11.97 kB / 447.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.671e-05/0.1001, allocations: 0 / 447.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.1001, allocations: 4 kB / 447.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.786e-05/0.1002, allocations: 115.2 kB / 448 MB, free: 10.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1002, allocations: 0 / 448 MB, free: 10.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.1004, allocations: 4 kB / 448 MB, free: 10.09 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.0003165/0.1007, allocations: 0.6937 MB / 448.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.1008, allocations: 27.92 kB / 448.7 MB, free: 9.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1009, allocations: 160 / 448.7 MB, free: 9.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.693e-05/0.1009, allocations: 15.98 kB / 448.7 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.1012, allocations: 21.38 kB / 448.7 MB, free: 9.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009632/0.1022, allocations: 1.349 MB / 450.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.1024, allocations: 0.6926 MB / 450.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.988e-05/0.1024, allocations: 4.031 kB / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.1024, allocations: 19.42 kB / 450.8 MB, free: 7.121 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1024, allocations: 0 / 450.8 MB, free: 7.121 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01119/0.1136, allocations: 1.379 MB / 452.2 MB, free: 5.738 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/0.1138, allocations: 228.2 kB / 452.4 MB, free: 5.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/1.769, allocations: 4 kB / 452.4 MB, free: 5.477 MB / 298.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