Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample",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.002696/0.002696, allocations: 185.2 kB / 7.843 MB, free: 2.504 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.008/2.008, 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.001313/0.001312, allocations: 95.23 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.1065/0.1065, allocations: 12.59 MB / 322 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2654/0.3719, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.4831, allocations: 50.37 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3399/0.8231, allocations: 77.52 MB / 0.4945 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004187/0.8236, allocations: 81.03 kB / 0.4946 GB, free: 11.91 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.01338/0.837, allocations: 2.004 MB / 0.4965 GB, free: 11.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.8371, allocations: 12.48 kB / 0.4966 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.391e-05/0.8372, allocations: 15.59 kB / 0.4966 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.8375, allocations: 197 kB / 0.4968 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.8375, allocations: 0 / 0.4968 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.8376, allocations: 0 / 0.4968 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001423/0.8377, allocations: 19.48 kB / 0.4968 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.8381, allocations: 104 kB / 0.4969 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.8381, allocations: 0.5625 kB / 0.4969 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.8381, allocations: 3.906 kB / 0.4969 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.8382, allocations: 0.6562 kB / 0.4969 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.8387, allocations: 258.7 kB / 0.4971 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.8389, allocations: 59.83 kB / 0.4972 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.731e-05/0.839, allocations: 30.41 kB / 0.4972 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.839, allocations: 8.547 kB / 0.4972 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.8391, allocations: 38.91 kB / 0.4973 GB, free: 10.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 4.98e-06/0.8391, allocations: 0 / 0.4973 GB, free: 10.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003058/0.8394, allocations: 58.66 kB / 0.4973 GB, free: 10.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.8395, allocations: 111.4 kB / 0.4974 GB, free: 10.58 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.8397, allocations: 129.9 kB / 0.4975 GB, free: 10.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.8398, allocations: 25.7 kB / 0.4976 GB, free: 10.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.8398, allocations: 88.41 kB / 0.4977 GB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.8399, allocations: 0.7969 kB / 0.4977 GB, free: 10.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.8399, allocations: 0 / 0.4977 GB, free: 10.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.296e-05/0.84, allocations: 325.3 kB / 0.498 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.333e-05/0.84, allocations: 3.375 kB / 0.498 GB, free: 10.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-05/0.8401, allocations: 28.69 kB / 0.498 GB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.977e-05/0.8402, allocations: 12.55 kB / 0.498 GB, free: 10.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.8402, allocations: 0 / 0.498 GB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001742/0.8404, allocations: 55.05 kB / 0.4981 GB, free: 9.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.8404, allocations: 7.688 kB / 0.4981 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.8405, allocations: 7.688 kB / 0.4981 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.8405, allocations: 1.406 kB / 0.4981 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.8408, allocations: 13.08 kB / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.8408, allocations: 3.562 kB / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.8409, allocations: 5.438 kB / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.841, allocations: 0 / 0.4981 GB, free: 9.969 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.397e-05/0.8411, allocations: 104.8 kB / 0.4982 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.8412, allocations: 55.31 kB / 0.4982 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.071e-05/0.8413, allocations: 16.89 kB / 0.4983 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.8413, allocations: 0 / 0.4983 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.8414, allocations: 0 / 0.4983 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.8414, allocations: 3.812 kB / 0.4983 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.8417, allocations: 146.2 kB / 0.4984 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.8417, allocations: 0 / 0.4984 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.8419, allocations: 14.62 kB / 0.4984 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.8419, allocations: 4.062 kB / 0.4984 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.8419, allocations: 3.906 kB / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.8419, allocations: 0.625 kB / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.842, allocations: 5 kB / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000231/0.8422, allocations: 195.8 kB / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002787/0.8425, allocations: 0.5523 MB / 0.4992 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.816e-05/0.8426, allocations: 95.44 kB / 0.4993 GB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.8427, allocations: 5.266 kB / 0.4993 GB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.8429, allocations: 5.172 kB / 0.4993 GB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.843, allocations: 7.688 kB / 0.4993 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.843, allocations: 5.25 kB / 0.4993 GB, free: 8.789 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001089/0.8431, allocations: 101.9 kB / 0.4994 GB, free: 8.715 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001893/0.845, allocations: 7.719 kB / 0.4994 GB, free: 8.715 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.0001734/0.8453, allocations: 96.23 kB / 0.4995 GB, free: 8.625 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001975/0.8455, allocations: 31.77 kB / 0.4995 GB, free: 8.617 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.8455, allocations: 0 / 0.4995 GB, free: 8.617 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.702e-05/0.8456, allocations: 1.5 kB / 0.4995 GB, free: 8.617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005636/0.8462, allocations: 23.28 kB / 0.4995 GB, free: 8.613 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005478/0.8467, allocations: 108.8 kB / 0.4996 GB, free: 8.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.847, allocations: 0.7138 MB / 0.5003 GB, free: 7.805 MB / 330.7 MB Notification: Performance of SimCode: time 1.663e-06/0.8471, allocations: 0 / 0.5003 GB, free: 7.805 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1)