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.0009989/0.0009994, 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.444/1.444, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0007773/0.0007773, allocations: 85.69 kB / 270.7 MB, free: 8.242 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.07754/0.07754, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000458/0.0004582, allocations: 12 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09532, allocations: 50.38 MB / 443.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002026/0.0974, allocations: 1.571 MB / 444.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.09896, allocations: 1.026 MB / 445.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.0991, allocations: 7.938 kB / 445.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003672/0.09948, allocations: 55.8 kB / 445.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.09973, allocations: 79.8 kB / 445.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.1003, allocations: 207.6 kB / 446.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.1005, allocations: 151.6 kB / 446.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.1007, allocations: 41.47 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.857e-05/0.1008, allocations: 55.72 kB / 446.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.831e-05/0.1009, allocations: 71.62 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.1009, allocations: 4 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.101, allocations: 55.95 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.143e-05/0.1011, allocations: 51.77 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.927e-05/0.1012, allocations: 89.19 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.1015, allocations: 223.5 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1015, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1015, allocations: 4 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.1015, allocations: 4 kB / 446.8 MB, free: 11.61 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006481/0.1022, allocations: 0.4962 MB / 447.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1022, allocations: 8.031 kB / 447.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.472e-05/0.1023, allocations: 38.75 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.1024, allocations: 24.66 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.1026, allocations: 287.6 kB / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.1027, allocations: 384 / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.1027, allocations: 15.94 kB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.103, allocations: 155.6 kB / 447.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.103, allocations: 3.984 kB / 447.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1031, allocations: 0 / 447.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.1031, allocations: 0 / 447.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.1032, allocations: 47.84 kB / 447.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004462/0.1036, allocations: 382.3 kB / 448.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.1038, allocations: 119.9 kB / 448.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.089e-05/0.1039, allocations: 54.5 kB / 448.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.104, allocations: 0 / 448.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.1042, allocations: 75.38 kB / 448.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1042, allocations: 0 / 448.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003233/0.1045, allocations: 161.3 kB / 448.7 MB, free: 9.523 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.1046, allocations: 158.2 kB / 448.8 MB, free: 9.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.1048, allocations: 330.5 kB / 449.1 MB, free: 9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1049, allocations: 29.95 kB / 449.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.965e-05/0.1049, allocations: 128.1 kB / 449.3 MB, free: 8.836 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.105, allocations: 19.8 kB / 449.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.105, allocations: 4 kB / 449.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.021e-05/0.105, allocations: 330.8 kB / 449.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.851e-05/0.1051, allocations: 23.98 kB / 449.7 MB, free: 8.457 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.011e-05/0.1052, allocations: 86.84 kB / 449.8 MB, free: 8.348 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.1053, allocations: 80.22 kB / 449.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1053, allocations: 3.938 kB / 449.8 MB, free: 8.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001811/0.1055, allocations: 125.4 kB / 450 MB, free: 8.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1055, allocations: 4 kB / 450 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1056, allocations: 4.312 kB / 450 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1056, allocations: 0 / 450 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.1057, allocations: 19.94 kB / 450 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.1057, allocations: 11.97 kB / 450 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.626e-05/0.1058, allocations: 19.78 kB / 450 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1058, allocations: 7.938 kB / 450 MB, free: 8.055 MB / 298.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,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.1059, allocations: 150 kB / 450.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/0.106, allocations: 69.34 kB / 450.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.018e-05/0.106, allocations: 29.7 kB / 450.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.106, allocations: 0 / 450.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.106, allocations: 4 kB / 450.3 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1061, allocations: 3.938 kB / 450.3 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.1062, allocations: 237.6 kB / 450.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1062, allocations: 0 / 450.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.929e-05/0.1063, allocations: 11.98 kB / 450.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1063, allocations: 8.062 kB / 450.5 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.1063, allocations: 0 / 450.5 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1063, allocations: 3.938 kB / 450.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1063, allocations: 4 kB / 450.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.1065, allocations: 166.4 kB / 450.7 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.848e-05/0.1066, allocations: 108.9 kB / 450.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/0.1067, allocations: 12 kB / 450.8 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.53e-05/0.1067, allocations: 8.078 kB / 450.8 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.1068, allocations: 15.88 kB / 450.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1068, allocations: 7.984 kB / 450.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001845/0.107, allocations: 237.9 kB / 451.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.107, allocations: 0 / 451.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.1073, allocations: 35.84 kB / 451.1 MB, free: 6.855 MB / 298.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001166/0.1084, allocations: 1.013 MB / 452.1 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001904/0.1086, allocations: 75.91 kB / 452.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1087, allocations: 4.25 kB / 452.2 MB, free: 5.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.852e-05/0.1087, allocations: 31.92 kB / 452.2 MB, free: 5.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.1091, allocations: 56.48 kB / 452.3 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.1111, allocations: 2.224 MB / 454.5 MB, free: 3.301 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.1113, allocations: 0.7516 MB / 455.3 MB, free: 2.523 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.403e-05/0.1114, allocations: 25.8 kB / 455.3 MB, free: 2.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.415e-05/0.1115, allocations: 55.42 kB / 455.3 MB, free: 2.449 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1115, allocations: 0 / 455.3 MB, free: 2.449 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.1272, allocations: 4.741 MB / 460.1 MB, free: 13.69 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003461/0.1276, allocations: 280.8 kB / 460.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/1.987, allocations: 4 kB / 460.4 MB, free: 13.32 MB / 314.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