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"}) [: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.001964/0.001964, allocations: 188.2 kB / 7.844 MB, free: 2.469 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.044/2.044, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.001376/0.001376, allocations: 93.77 kB / 261.5 MB, free: 13.59 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.1104/0.1104, allocations: 12.59 MB / 322 MB, free: 0.957 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2519/0.3624, allocations: 56.49 MB / 378.5 MB, free: 75.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.4672, allocations: 50.38 MB / 428.9 MB, free: 25.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/0.7998, allocations: 77.48 MB / 0.4945 GB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.8002, allocations: 82.55 kB / 0.4946 GB, free: 11.97 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.005958/0.8062, allocations: 1.467 MB / 0.496 GB, free: 11.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.8062, allocations: 11.69 kB / 0.496 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/0.8063, allocations: 13.38 kB / 0.496 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.8065, allocations: 190.4 kB / 0.4962 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.8065, allocations: 3.844 kB / 0.4962 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.8066, allocations: 4.688 kB / 0.4962 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.658e-05/0.8067, allocations: 20.39 kB / 0.4962 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.8069, allocations: 89.88 kB / 0.4963 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.8069, allocations: 4 kB / 0.4963 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.8069, allocations: 0.7969 kB / 0.4963 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.807, allocations: 3.906 kB / 0.4963 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003728/0.8073, allocations: 248.9 kB / 0.4966 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.869e-05/0.8074, allocations: 48.8 kB / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.297e-05/0.8075, allocations: 13.56 kB / 0.4966 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.8075, allocations: 4.547 kB / 0.4966 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.8075, allocations: 34.39 kB / 0.4966 GB, free: 10.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.8075, allocations: 0 / 0.4966 GB, free: 10.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.00019/0.8077, allocations: 54.77 kB / 0.4967 GB, free: 10.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.8078, allocations: 81.17 kB / 0.4968 GB, free: 10.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.8079, allocations: 130.8 kB / 0.4969 GB, free: 10.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.8079, allocations: 25.7 kB / 0.4969 GB, free: 10.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.76e-05/0.808, allocations: 81.64 kB / 0.497 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.808, allocations: 4.5 kB / 0.497 GB, free: 10.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.808, allocations: 0 / 0.497 GB, free: 10.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.116e-05/0.8081, allocations: 316.8 kB / 0.4973 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2e-05/0.8081, allocations: 7.688 kB / 0.4973 GB, free: 10.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.451e-05/0.8082, allocations: 13.66 kB / 0.4973 GB, free: 10.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.426e-05/0.8082, allocations: 7.781 kB / 0.4973 GB, free: 10.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.8082, allocations: 0.6094 kB / 0.4973 GB, free: 10.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.179e-05/0.8083, allocations: 50.7 kB / 0.4974 GB, free: 10.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.8083, allocations: 3.812 kB / 0.4974 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.8083, allocations: 0.7031 kB / 0.4974 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.8084, allocations: 11.97 kB / 0.4974 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.8085, allocations: 5.422 kB / 0.4974 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.8085, allocations: 0.6562 kB / 0.4974 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.339e-05/0.8086, allocations: 8.531 kB / 0.4974 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.8086, allocations: 0 / 0.4974 GB, free: 10.15 MB / 330.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.403e-05/0.8086, allocations: 105.6 kB / 0.4975 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.85e-05/0.8087, allocations: 41.97 kB / 0.4976 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.8088, allocations: 13 kB / 0.4976 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.8088, allocations: 0 / 0.4976 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.8088, allocations: 3.812 kB / 0.4976 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.8088, allocations: 0.9375 kB / 0.4976 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.809, allocations: 147.5 kB / 0.4977 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.809, allocations: 0 / 0.4977 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.292e-05/0.8091, allocations: 10.8 kB / 0.4977 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.8091, allocations: 0 / 0.4977 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.8091, allocations: 0 / 0.4977 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.8091, allocations: 0 / 0.4977 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.8091, allocations: 7.844 kB / 0.4977 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001185/0.8093, allocations: 160 kB / 0.4979 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001618/0.8094, allocations: 0.5324 MB / 0.4984 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/0.8095, allocations: 91.34 kB / 0.4985 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.8096, allocations: 0 / 0.4985 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.8097, allocations: 5.516 kB / 0.4985 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.8098, allocations: 1.406 kB / 0.4985 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.8098, allocations: 11.72 kB / 0.4985 GB, free: 9.031 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.456e-05/0.8099, allocations: 107.9 kB / 0.4986 GB, free: 8.953 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001093/0.811, allocations: 3.875 kB / 0.4986 GB, free: 8.953 MB / 330.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 () * 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 (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.0001051/0.8111, allocations: 97.33 kB / 0.4987 GB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.8112, allocations: 14.62 kB / 0.4987 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8112, allocations: 0 / 0.4987 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.599e-05/0.8112, allocations: 8.141 kB / 0.4987 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.8116, allocations: 17.75 kB / 0.4987 GB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000333/0.812, allocations: 97.38 kB / 0.4988 GB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.8122, allocations: 0.7052 MB / 0.4995 GB, free: 8.059 MB / 330.7 MB Notification: Performance of SimCode: time 6.81e-07/0.8122, allocations: 0 / 0.4995 GB, free: 8.059 MB / 330.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)