Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.001474/0.001474, 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.459/1.459, allocations: 205.4 MB / 222.3 MB, free: 9.004 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.0007898/0.0007896, allocations: 91.81 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.0872/0.0872, allocations: 12.59 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004263/0.0004264, allocations: 12 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09135/0.0918, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002072/0.09392, allocations: 1.578 MB / 444.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.09537, allocations: 0.9443 MB / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.09554, allocations: 7.938 kB / 445.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005927/0.09615, allocations: 139.7 kB / 445.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.09641, allocations: 103.6 kB / 445.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.09691, allocations: 163.7 kB / 446.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.09715, allocations: 179.5 kB / 446.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.09727, allocations: 33.77 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.09739, allocations: 63.62 kB / 446.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.0975, allocations: 63.7 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.221e-05/0.09753, allocations: 4 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.09766, allocations: 43.91 kB / 446.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.224e-05/0.09773, allocations: 39.84 kB / 446.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.09783, allocations: 93.23 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.09805, allocations: 179.4 kB / 446.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.09807, allocations: 8 kB / 446.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09807, allocations: 0 / 446.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.09809, allocations: 0 / 446.8 MB, free: 11.67 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.000634/0.09873, allocations: 488.2 kB / 447.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.09878, allocations: 12.03 kB / 447.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.616e-05/0.09882, allocations: 38.73 kB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.09887, allocations: 24.75 kB / 447.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.09915, allocations: 258.8 kB / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.09918, allocations: 4.375 kB / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.09921, allocations: 15.88 kB / 447.6 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.09952, allocations: 146.7 kB / 447.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.09954, allocations: 0 / 447.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.09956, allocations: 0 / 447.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.09957, allocations: 7.922 kB / 447.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.148e-05/0.09967, allocations: 39.91 kB / 447.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004123/0.1001, allocations: 350.5 kB / 448.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.1003, allocations: 111.9 kB / 448.2 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.438e-05/0.1003, allocations: 50.5 kB / 448.3 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.1004, allocations: 4 kB / 448.3 MB, free: 9.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001347/0.1005, allocations: 79.33 kB / 448.4 MB, free: 9.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.1005, allocations: 0 / 448.4 MB, free: 9.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003/0.1008, allocations: 137.3 kB / 448.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.1009, allocations: 148.7 kB / 448.6 MB, free: 9.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.1011, allocations: 260.9 kB / 448.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.1011, allocations: 33.7 kB / 448.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.448e-05/0.1012, allocations: 120.1 kB / 449 MB, free: 9.098 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.1012, allocations: 15.81 kB / 449.1 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.1012, allocations: 0 / 449.1 MB, free: 9.082 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.543e-05/0.1013, allocations: 330.8 kB / 449.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.434e-05/0.1014, allocations: 24 kB / 449.4 MB, free: 8.727 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.802e-05/0.1014, allocations: 62 kB / 449.5 MB, free: 8.645 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.1015, allocations: 80.25 kB / 449.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1016, allocations: 0 / 449.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001638/0.1017, allocations: 117.4 kB / 449.7 MB, free: 8.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1017, allocations: 4 kB / 449.7 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.1018, allocations: 0 / 449.7 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1018, allocations: 4 kB / 449.7 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.352e-05/0.1019, allocations: 11.98 kB / 449.7 MB, free: 8.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.1019, allocations: 4.125 kB / 449.7 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.632e-05/0.1019, allocations: 15.84 kB / 449.7 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.102, allocations: 7.938 kB / 449.7 MB, free: 8.383 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,sample.u,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 9.228e-05/0.1021, allocations: 145.8 kB / 449.9 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.165e-05/0.1021, allocations: 65.44 kB / 449.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.475e-05/0.1022, allocations: 25.7 kB / 449.9 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1022, allocations: 0 / 449.9 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.1022, allocations: 0 / 449.9 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1022, allocations: 12 kB / 450 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.1024, allocations: 225.6 kB / 450.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1024, allocations: 320 / 450.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.684e-05/0.1024, allocations: 8 kB / 450.2 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1024, allocations: 4 kB / 450.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1024, allocations: 7.984 kB / 450.2 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1024, allocations: 0 / 450.2 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1024, allocations: 4 kB / 450.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.1026, allocations: 158.4 kB / 450.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.446e-05/0.1027, allocations: 108.9 kB / 450.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.1027, allocations: 4 kB / 450.5 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.177e-05/0.1028, allocations: 8 kB / 450.5 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.1029, allocations: 11.92 kB / 450.5 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1029, allocations: 4 kB / 450.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001479/0.103, allocations: 192.5 kB / 450.7 MB, free: 7.312 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.103, allocations: 4 kB / 450.7 MB, free: 7.309 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000232/0.1033, allocations: 32 kB / 450.7 MB, free: 7.277 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,sample.u,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.001094/0.1044, allocations: 0.9992 MB / 451.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.1046, allocations: 71.84 kB / 451.8 MB, free: 6.172 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1046, allocations: 0 / 451.8 MB, free: 6.172 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.822e-05/0.1046, allocations: 19.98 kB / 451.8 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.105, allocations: 64.25 kB / 451.9 MB, free: 6.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.1069, allocations: 1.959 MB / 453.8 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.1071, allocations: 0.7205 MB / 454.5 MB, free: 3.262 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.857e-05/0.1072, allocations: 21.53 kB / 454.6 MB, free: 3.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.7e-05/0.1073, allocations: 55.42 kB / 454.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of SimCode: time 4.3e-07/0.1073, allocations: 4 kB / 454.6 MB, free: 3.188 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01501/0.1223, allocations: 4.09 MB / 458.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000294/0.1227, allocations: 276.8 kB / 459 MB, free: 14.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.08, allocations: 0 / 459 MB, free: 14.72 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat