Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold",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.001793/0.001793, allocations: 185.8 kB / 7.843 MB, free: 2.5 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.073/2.073, allocations: 205.2 MB / 213.5 MB, free: 13.91 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.001317/0.001316, allocations: 93.47 kB / 261.5 MB, free: 13.63 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.09906/0.09906, allocations: 12.59 MB / 322 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2461/0.3452, allocations: 56.5 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.4599, allocations: 50.38 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3547/0.8147, allocations: 77.67 MB / 0.4947 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003513/0.8151, allocations: 78.67 kB / 0.4947 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.007542/0.8227, allocations: 1.585 MB / 0.4963 GB, free: 11.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.8227, allocations: 8.641 kB / 0.4963 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.8228, allocations: 11.66 kB / 0.4963 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.823, allocations: 203.6 kB / 0.4965 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.8231, allocations: 0 / 0.4965 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.8231, allocations: 3.969 kB / 0.4965 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001087/0.8232, allocations: 24.58 kB / 0.4965 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.8235, allocations: 117.1 kB / 0.4966 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.8235, allocations: 0 / 0.4966 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.8235, allocations: 0.75 kB / 0.4966 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.8235, allocations: 0 / 0.4966 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004517/0.824, allocations: 353.9 kB / 0.497 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.8241, allocations: 81.05 kB / 0.4971 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.247e-05/0.8242, allocations: 41.5 kB / 0.4971 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.8242, allocations: 0 / 0.4971 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.8243, allocations: 38.59 kB / 0.4971 GB, free: 10.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.724e-06/0.8243, allocations: 4 kB / 0.4971 GB, free: 10.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002671/0.8246, allocations: 71.72 kB / 0.4972 GB, free: 10.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.8246, allocations: 133.2 kB / 0.4973 GB, free: 10.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.8248, allocations: 125 kB / 0.4975 GB, free: 10.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.8248, allocations: 25.7 kB / 0.4975 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.8248, allocations: 94.39 kB / 0.4976 GB, free: 10.24 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.8249, allocations: 4.516 kB / 0.4976 GB, free: 10.24 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.8249, allocations: 0 / 0.4976 GB, free: 10.24 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.984e-05/0.825, allocations: 324 kB / 0.4979 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.802e-05/0.825, allocations: 11.75 kB / 0.4979 GB, free: 9.918 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.474e-05/0.8251, allocations: 33.12 kB / 0.4979 GB, free: 9.879 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.405e-05/0.8251, allocations: 16.19 kB / 0.4979 GB, free: 9.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.8251, allocations: 0 / 0.4979 GB, free: 9.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001484/0.8253, allocations: 71.17 kB / 0.498 GB, free: 9.832 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.8253, allocations: 5.344 kB / 0.498 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.8253, allocations: 0 / 0.498 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.8254, allocations: 3.844 kB / 0.498 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.8255, allocations: 18.77 kB / 0.498 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.8256, allocations: 0.8594 kB / 0.498 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.099e-05/0.8257, allocations: 3.844 kB / 0.498 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.8257, allocations: 4.953 kB / 0.498 GB, free: 9.828 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 7.271e-05/0.8258, allocations: 108.9 kB / 0.4981 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.8259, allocations: 55.11 kB / 0.4982 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.826, allocations: 12.06 kB / 0.4982 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.826, allocations: 7.906 kB / 0.4982 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.826, allocations: 0 / 0.4982 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.826, allocations: 0 / 0.4982 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.8263, allocations: 159.1 kB / 0.4984 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.8263, allocations: 3.812 kB / 0.4984 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.8264, allocations: 10.38 kB / 0.4984 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.8264, allocations: 7.844 kB / 0.4984 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.8265, allocations: 1.172 kB / 0.4984 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.8265, allocations: 4.688 kB / 0.4984 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.8265, allocations: 4 kB / 0.4984 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001975/0.8267, allocations: 280.3 kB / 0.4987 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002309/0.8269, allocations: 0.6619 MB / 0.4993 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.818e-05/0.827, allocations: 96.42 kB / 0.4994 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.8271, allocations: 0 / 0.4994 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.8272, allocations: 5.594 kB / 0.4994 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.8273, allocations: 7.719 kB / 0.4994 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.8273, allocations: 1.266 kB / 0.4994 GB, free: 8.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.069e-05/0.8274, allocations: 111.6 kB / 0.4995 GB, free: 8.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001379/0.8288, allocations: 7.656 kB / 0.4995 GB, free: 8.398 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0001248/0.829, allocations: 105.2 kB / 0.4996 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.8291, allocations: 34.98 kB / 0.4997 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8292, allocations: 0 / 0.4997 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.076e-05/0.8292, allocations: 10.97 kB / 0.4997 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.8297, allocations: 21.92 kB / 0.4997 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004274/0.8301, allocations: 133.2 kB / 0.4998 GB, free: 8.176 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.8304, allocations: 0.7185 MB / 0.5005 GB, free: 7.469 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.8304, allocations: 0 / 0.5005 GB, free: 7.469 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1)