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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00271/0.00271, allocations: 185.4 kB / 7.843 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001324/0.001324, allocations: 91.53 kB / 261.5 MB, free: 13.64 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.101/0.101, allocations: 12.58 MB / 322 MB, free: 1.008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2445/0.3456, allocations: 56.51 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.4381, allocations: 50.36 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.339/0.7771, allocations: 81.01 MB / 0.4979 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.7775, allocations: 81.67 kB / 0.498 GB, free: 11.99 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.02557/0.8031, allocations: 5.848 MB / 0.5037 GB, free: 10.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.8031, allocations: 11.22 kB / 0.5037 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.468e-05/0.8032, allocations: 19.25 kB / 0.5037 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005403/0.8038, allocations: 264.2 kB / 0.504 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.8038, allocations: 11.72 kB / 0.504 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.8039, allocations: 7.703 kB / 0.504 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001512/0.804, allocations: 33.42 kB / 0.504 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.8044, allocations: 131.6 kB / 0.5042 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.8044, allocations: 0 / 0.5042 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.8044, allocations: 4 kB / 0.5042 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.8044, allocations: 3.938 kB / 0.5042 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006978/0.8052, allocations: 338 kB / 0.5045 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.8054, allocations: 105.7 kB / 0.5046 GB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.584e-05/0.8055, allocations: 39.73 kB / 0.5046 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.8055, allocations: 0 / 0.5046 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/0.8057, allocations: 79.61 kB / 0.5047 GB, free: 10.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.324e-06/0.8057, allocations: 0 / 0.5047 GB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003355/0.806, allocations: 94.22 kB / 0.5048 GB, free: 9.977 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.8061, allocations: 136.3 kB / 0.5049 GB, free: 9.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.8065, allocations: 236.3 kB / 0.5052 GB, free: 9.695 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.8065, allocations: 25.7 kB / 0.5052 GB, free: 9.664 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.461e-05/0.8066, allocations: 101.9 kB / 0.5053 GB, free: 9.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.8066, allocations: 11.31 kB / 0.5053 GB, free: 9.566 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.8066, allocations: 0 / 0.5053 GB, free: 9.566 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.163e-05/0.8067, allocations: 336 kB / 0.5056 GB, free: 9.242 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.778e-05/0.8068, allocations: 17.88 kB / 0.5056 GB, free: 9.242 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.634e-05/0.8069, allocations: 59.42 kB / 0.5057 GB, free: 9.188 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.006e-05/0.807, allocations: 34.08 kB / 0.5057 GB, free: 9.172 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.807, allocations: 3.688 kB / 0.5057 GB, free: 9.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002574/0.8072, allocations: 100.8 kB / 0.5058 GB, free: 9.121 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.8073, allocations: 7.688 kB / 0.5058 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.8073, allocations: 128 / 0.5058 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.8073, allocations: 7.656 kB / 0.5058 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.8075, allocations: 11.7 kB / 0.5058 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.8075, allocations: 3.812 kB / 0.5058 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.8077, allocations: 11.81 kB / 0.5059 GB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.8077, allocations: 7.844 kB / 0.5059 GB, free: 9.102 MB / 330.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 9.592e-05/0.8078, allocations: 109.7 kB / 0.506 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.8079, allocations: 64.12 kB / 0.506 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002888/0.8082, allocations: 101.3 kB / 0.5061 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.8082, allocations: 0 / 0.5061 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.8083, allocations: 0 / 0.5061 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.8083, allocations: 7.828 kB / 0.5061 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.8085, allocations: 202.8 kB / 0.5063 GB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.8085, allocations: 0 / 0.5063 GB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/0.8086, allocations: 11.67 kB / 0.5063 GB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.595e-06/0.8086, allocations: 3.906 kB / 0.5063 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.8086, allocations: 0 / 0.5063 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.8087, allocations: 3.844 kB / 0.5063 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.8087, allocations: 7.938 kB / 0.5064 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003065/0.809, allocations: 162.5 kB / 0.5065 GB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002968/0.8093, allocations: 0.5418 MB / 0.507 GB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.8095, allocations: 114 kB / 0.5071 GB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.8096, allocations: 6.094 kB / 0.5072 GB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.8097, allocations: 11.67 kB / 0.5072 GB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.8098, allocations: 3.531 kB / 0.5072 GB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.8098, allocations: 7.672 kB / 0.5072 GB, free: 7.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002692/0.8101, allocations: 184.9 kB / 0.5073 GB, free: 7.828 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001285/0.8114, allocations: 34.12 kB / 0.5074 GB, free: 7.824 MB / 330.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.0008889/0.8123, allocations: 328.5 kB / 0.5077 GB, free: 7.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.8126, allocations: 64.55 kB / 0.5078 GB, free: 7.559 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.8127, allocations: 0 / 0.5078 GB, free: 7.559 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.363e-05/0.8128, allocations: 34.02 kB / 0.5078 GB, free: 7.551 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.8134, allocations: 50.41 kB / 0.5078 GB, free: 7.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000713/0.8141, allocations: 216.9 kB / 0.508 GB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002902/0.8144, allocations: 0.7648 MB / 0.5088 GB, free: 6.664 MB / 330.7 MB Notification: Performance of SimCode: time 2.024e-06/0.8145, allocations: 0 / 0.5088 GB, free: 6.664 MB / 330.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)