Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.001734/0.001733, allocations: 193.5 kB / 7.849 MB, free: 2.465 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.998/1.998, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.00176/0.00176, allocations: 87.52 kB / 261.5 MB, free: 13.62 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.1064/0.1064, allocations: 12.6 MB / 322 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2563/0.3627, allocations: 56.48 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.4658, allocations: 50.38 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3238/0.7896, allocations: 77.41 MB / 0.4944 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/0.79, allocations: 76.83 kB / 0.4945 GB, free: 11.93 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.005389/0.7954, allocations: 1.365 MB / 0.4958 GB, free: 11.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.7954, allocations: 11.5 kB / 0.4958 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.7955, allocations: 8.266 kB / 0.4958 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.7957, allocations: 190.2 kB / 0.496 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.7957, allocations: 1.75 kB / 0.496 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.7958, allocations: 7.812 kB / 0.496 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.691e-05/0.7959, allocations: 12.61 kB / 0.496 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.7961, allocations: 81.05 kB / 0.4961 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.7961, allocations: 0 / 0.4961 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.7961, allocations: 0.75 kB / 0.4961 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.7961, allocations: 3.875 kB / 0.4961 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003529/0.7965, allocations: 244.6 kB / 0.4963 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.296e-05/0.7966, allocations: 45.25 kB / 0.4964 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.443e-05/0.7966, allocations: 17.33 kB / 0.4964 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.7967, allocations: 0 / 0.4964 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.7967, allocations: 31.08 kB / 0.4964 GB, free: 10.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.7967, allocations: 0 / 0.4964 GB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001823/0.7969, allocations: 62.69 kB / 0.4965 GB, free: 10.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.7969, allocations: 77.86 kB / 0.4966 GB, free: 10.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.7971, allocations: 122.1 kB / 0.4967 GB, free: 10.64 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.7971, allocations: 25.7 kB / 0.4967 GB, free: 10.61 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.882e-05/0.7971, allocations: 88.45 kB / 0.4968 GB, free: 10.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/0.7971, allocations: 3.906 kB / 0.4968 GB, free: 10.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.7972, allocations: 0 / 0.4968 GB, free: 10.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.203e-05/0.7972, allocations: 319.9 kB / 0.4971 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.802e-05/0.7972, allocations: 3.844 kB / 0.4971 GB, free: 10.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.417e-05/0.7973, allocations: 17.19 kB / 0.4971 GB, free: 10.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.371e-05/0.7973, allocations: 0.7031 kB / 0.4971 GB, free: 10.19 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.7973, allocations: 3.844 kB / 0.4971 GB, free: 10.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.04e-05/0.7974, allocations: 46.33 kB / 0.4972 GB, free: 10.15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.7975, allocations: 7.688 kB / 0.4972 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.7975, allocations: 4.828 kB / 0.4972 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.7975, allocations: 0 / 0.4972 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.7976, allocations: 9.25 kB / 0.4972 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.7976, allocations: 4.625 kB / 0.4972 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.071e-05/0.7977, allocations: 0.7031 kB / 0.4972 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.7977, allocations: 4.609 kB / 0.4972 GB, free: 10.14 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.194e-05/0.7978, allocations: 104.9 kB / 0.4973 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.7979, allocations: 49.39 kB / 0.4973 GB, free: 9.992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.161e-05/0.7979, allocations: 8.984 kB / 0.4974 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.7979, allocations: 0 / 0.4974 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7979, allocations: 3.938 kB / 0.4974 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.7979, allocations: 0.9375 kB / 0.4974 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.7981, allocations: 141.8 kB / 0.4975 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.7981, allocations: 5.391 kB / 0.4975 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.074e-05/0.7982, allocations: 5.203 kB / 0.4975 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.7982, allocations: 0 / 0.4975 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.7982, allocations: 7.938 kB / 0.4975 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.7982, allocations: 3.844 kB / 0.4975 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.7983, allocations: 1.594 kB / 0.4975 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001194/0.7984, allocations: 158.5 kB / 0.4977 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000164/0.7986, allocations: 0.5346 MB / 0.4982 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.7986, allocations: 84.88 kB / 0.4983 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.7987, allocations: 5.359 kB / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.7988, allocations: 3.969 kB / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/0.7988, allocations: 1.484 kB / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.7989, allocations: 11.81 kB / 0.4983 GB, free: 9.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.591e-05/0.7989, allocations: 101.7 kB / 0.4984 GB, free: 8.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00109/0.8, allocations: 3.875 kB / 0.4984 GB, free: 8.945 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.0001164/0.8002, allocations: 99.81 kB / 0.4985 GB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.405e-05/0.8003, allocations: 14.94 kB / 0.4985 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.8003, allocations: 0 / 0.4985 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.284e-05/0.8003, allocations: 4.844 kB / 0.4985 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.8006, allocations: 16.27 kB / 0.4985 GB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.8009, allocations: 94.05 kB / 0.4986 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.8012, allocations: 0.7004 MB / 0.4993 GB, free: 8.051 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.8012, allocations: 3.781 kB / 0.4993 GB, free: 8.051 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1)