Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_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.002742/0.002741, allocations: 190.3 kB / 7.846 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 1.961/1.961, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.001304/0.001304, allocations: 94.45 kB / 261.5 MB, free: 13.61 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.1183/0.1183, allocations: 12.6 MB / 322 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2545/0.3728, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.4663, allocations: 50.37 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.7677, allocations: 77.5 MB / 0.4945 GB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.768, allocations: 77.78 kB / 0.4946 GB, free: 11.85 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.005732/0.7738, allocations: 1.475 MB / 0.496 GB, free: 11.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.7738, allocations: 11.56 kB / 0.496 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.7739, allocations: 11.66 kB / 0.496 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002176/0.7741, allocations: 192.9 kB / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.7741, allocations: 4.766 kB / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.7742, allocations: 0 / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001078/0.7743, allocations: 15.97 kB / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.7745, allocations: 107.4 kB / 0.4963 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.7746, allocations: 0 / 0.4963 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.7746, allocations: 4.469 kB / 0.4963 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.7746, allocations: 0 / 0.4963 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000399/0.775, allocations: 259.2 kB / 0.4966 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.157e-05/0.7751, allocations: 60.44 kB / 0.4966 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.093e-05/0.7752, allocations: 26.67 kB / 0.4967 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.7752, allocations: 4.516 kB / 0.4967 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.7752, allocations: 46.61 kB / 0.4967 GB, free: 10.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.583e-06/0.7753, allocations: 3.875 kB / 0.4967 GB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002242/0.7755, allocations: 56.05 kB / 0.4968 GB, free: 10.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.7755, allocations: 103.6 kB / 0.4969 GB, free: 10.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.7757, allocations: 135.5 kB / 0.497 GB, free: 10.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.7757, allocations: 25.7 kB / 0.497 GB, free: 10.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.7757, allocations: 81.64 kB / 0.4971 GB, free: 10.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.7758, allocations: 8.219 kB / 0.4971 GB, free: 10.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.7758, allocations: 0 / 0.4971 GB, free: 10.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.379e-05/0.7759, allocations: 316.7 kB / 0.4974 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.311e-05/0.7759, allocations: 12.17 kB / 0.4974 GB, free: 10.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.457e-05/0.776, allocations: 31.66 kB / 0.4975 GB, free: 9.984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.278e-05/0.776, allocations: 9.141 kB / 0.4975 GB, free: 9.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.7761, allocations: 0 / 0.4975 GB, free: 9.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000181/0.7763, allocations: 55.84 kB / 0.4975 GB, free: 9.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.7763, allocations: 7.781 kB / 0.4975 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.7763, allocations: 0.8438 kB / 0.4975 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.7764, allocations: 4.125 kB / 0.4975 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.7766, allocations: 13.16 kB / 0.4975 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.7766, allocations: 0.75 kB / 0.4975 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.7768, allocations: 5.516 kB / 0.4976 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.7768, allocations: 0 / 0.4976 GB, free: 9.938 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.942e-05/0.7769, allocations: 108.8 kB / 0.4977 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002134/0.7771, allocations: 55.31 kB / 0.4977 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.68e-05/0.7772, allocations: 16.58 kB / 0.4977 GB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.7772, allocations: 96 / 0.4977 GB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.7773, allocations: 0 / 0.4977 GB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.7773, allocations: 9.453 kB / 0.4977 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.7776, allocations: 145 kB / 0.4979 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.7776, allocations: 0 / 0.4979 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.7778, allocations: 14 kB / 0.4979 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.7779, allocations: 0 / 0.4979 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.7779, allocations: 3.906 kB / 0.4979 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.7779, allocations: 8.859 kB / 0.4979 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.7779, allocations: 0 / 0.4979 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002812/0.7782, allocations: 188.3 kB / 0.4981 GB, free: 9.426 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003294/0.7786, allocations: 0.5559 MB / 0.4986 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.7787, allocations: 92.72 kB / 0.4987 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.7788, allocations: 5.281 kB / 0.4987 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.7791, allocations: 4 kB / 0.4987 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.739e-05/0.7791, allocations: 9.094 kB / 0.4987 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.7792, allocations: 0 / 0.4987 GB, free: 8.762 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001359/0.7793, allocations: 110.1 kB / 0.4988 GB, free: 8.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002727/0.7821, allocations: 7.812 kB / 0.4988 GB, free: 8.68 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000189/0.7823, allocations: 97.64 kB / 0.4989 GB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00021/0.7825, allocations: 23.86 kB / 0.499 GB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.7826, allocations: 8.188 kB / 0.499 GB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.824e-05/0.7826, allocations: 3.938 kB / 0.499 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007416/0.7834, allocations: 23.58 kB / 0.499 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006163/0.784, allocations: 103.4 kB / 0.4991 GB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.7844, allocations: 0.7099 MB / 0.4998 GB, free: 7.777 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.7844, allocations: 3.938 kB / 0.4998 GB, free: 7.773 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1)