Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.0023/0.0023, allocations: 181 kB / 8.049 MB, free: 1.027 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.284/2.284, allocations: 205.3 MB / 213.8 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 90.56 kB / 261.8 MB, free: 1.668 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.1087/0.1087, allocations: 12.6 MB / 322.4 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.767e-05, allocations: 0 / 379 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.337, allocations: 50.36 MB / 429.4 MB, free: 18.31 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.485, allocations: 81.11 MB / 0.4985 GB, free: 1.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/0.4854, allocations: 79.95 kB / 0.4986 GB, free: 1.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02732/0.5127, allocations: 5.904 MB / 0.5044 GB, free: 11.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5128, allocations: 0 / 0.5044 GB, free: 11.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.246e-05/0.5128, allocations: 4 kB / 0.5044 GB, free: 11.1 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008127/0.5136, allocations: 0.4915 MB / 0.5049 GB, free: 10.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.5137, allocations: 8.031 kB / 0.5049 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.655e-05/0.5138, allocations: 23.72 kB / 0.5049 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000635/0.5144, allocations: 282.5 kB / 0.5052 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.5145, allocations: 7.953 kB / 0.5052 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.5145, allocations: 7.984 kB / 0.5052 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001629/0.5147, allocations: 35.94 kB / 0.5052 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003774/0.5151, allocations: 147.6 kB / 0.5054 GB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.5151, allocations: 0 / 0.5054 GB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.5152, allocations: 0 / 0.5054 GB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.5152, allocations: 4 kB / 0.5054 GB, free: 9.984 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007377/0.5159, allocations: 379.8 kB / 0.5057 GB, free: 9.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.5162, allocations: 111.8 kB / 0.5058 GB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.682e-05/0.5163, allocations: 46.7 kB / 0.5059 GB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.5163, allocations: 3.938 kB / 0.5059 GB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001867/0.5165, allocations: 67.39 kB / 0.5059 GB, free: 9.297 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.655e-06/0.5165, allocations: 0 / 0.5059 GB, free: 9.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003789/0.5169, allocations: 129.3 kB / 0.5061 GB, free: 9.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.517, allocations: 154.2 kB / 0.5062 GB, free: 8.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005017/0.5176, allocations: 290.3 kB / 0.5065 GB, free: 8.691 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.5176, allocations: 25.7 kB / 0.5065 GB, free: 8.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.5177, allocations: 124.1 kB / 0.5066 GB, free: 8.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.5178, allocations: 23.86 kB / 0.5067 GB, free: 8.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.577e-06/0.5178, allocations: 0 / 0.5067 GB, free: 8.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5179, allocations: 334.8 kB / 0.507 GB, free: 8.176 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.688e-05/0.518, allocations: 28.02 kB / 0.507 GB, free: 8.148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.5182, allocations: 82.8 kB / 0.5071 GB, free: 8.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.5183, allocations: 44.05 kB / 0.5071 GB, free: 8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5183, allocations: 0 / 0.5071 GB, free: 8 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002854/0.5186, allocations: 109.3 kB / 0.5072 GB, free: 7.887 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.5186, allocations: 8 kB / 0.5072 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.5187, allocations: 0 / 0.5072 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.5187, allocations: 4 kB / 0.5072 GB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.5189, allocations: 19.92 kB / 0.5073 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.5189, allocations: 4 kB / 0.5073 GB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.5191, allocations: 8.125 kB / 0.5073 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.5191, allocations: 4 kB / 0.5073 GB, free: 7.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001234/0.5192, allocations: 112.9 kB / 0.5074 GB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002958/0.5195, allocations: 121.3 kB / 0.5075 GB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.591e-05/0.5196, allocations: 19.72 kB / 0.5075 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003492/0.52, allocations: 123.4 kB / 0.5076 GB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.52, allocations: 0 / 0.5076 GB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.52, allocations: 4.047 kB / 0.5076 GB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.52, allocations: 4 kB / 0.5076 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.5203, allocations: 226 kB / 0.5079 GB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5204, allocations: 4 kB / 0.5079 GB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.5205, allocations: 8 kB / 0.5079 GB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.5205, allocations: 0 / 0.5079 GB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.5206, allocations: 8.031 kB / 0.5079 GB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.5206, allocations: 0 / 0.5079 GB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/0.5206, allocations: 12.05 kB / 0.5079 GB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003407/0.5209, allocations: 185.9 kB / 0.5081 GB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.5211, allocations: 124.8 kB / 0.5082 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.5212, allocations: 4 kB / 0.5082 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.5214, allocations: 11.94 kB / 0.5082 GB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.5214, allocations: 11.97 kB / 0.5082 GB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.5215, allocations: 8 kB / 0.5082 GB, free: 6.754 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000394/0.5219, allocations: 226 kB / 0.5084 GB, free: 6.531 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.5219, allocations: 0 / 0.5084 GB, free: 6.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004542/0.5224, allocations: 51.88 kB / 0.5085 GB, free: 6.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001723/0.5241, allocations: 1.102 MB / 0.5096 GB, free: 5.344 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.5245, allocations: 83.89 kB / 0.5096 GB, free: 5.262 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5245, allocations: 256 / 0.5096 GB, free: 5.262 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.396e-05/0.5246, allocations: 35.88 kB / 0.5097 GB, free: 5.227 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.5252, allocations: 64.02 kB / 0.5097 GB, free: 5.168 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.5263, allocations: 349 kB / 0.5101 GB, free: 4.785 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.5267, allocations: 0.7516 MB / 0.5108 GB, free: 4.008 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.5269, allocations: 25.31 kB / 0.5108 GB, free: 3.984 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.527, allocations: 59.41 kB / 0.5109 GB, free: 3.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5271, allocations: 0 / 0.5109 GB, free: 3.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3493/0.8764, allocations: 4.303 MB / 0.5151 GB, free: 88.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003119/0.8767, allocations: 199.2 kB / 0.5153 GB, free: 88.49 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.631/3.507, allocations: 1.406 kB / 0.5153 GB, free: 88.49 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat