Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",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.001719/0.001719, allocations: 183.6 kB / 7.844 MB, free: 2.266 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.079/2.079, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001405/0.001405, allocations: 94.83 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.1104/0.1104, allocations: 12.58 MB / 322 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.245/0.3555, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.4512, allocations: 50.36 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3628/0.8141, allocations: 78.01 MB / 0.495 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.8145, allocations: 78.94 kB / 0.4951 GB, free: 11.95 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.006786/0.8213, allocations: 1.648 MB / 0.4967 GB, free: 11.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.8213, allocations: 15.28 kB / 0.4967 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.364e-05/0.8214, allocations: 8.438 kB / 0.4967 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.8216, allocations: 203.9 kB / 0.4969 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.8217, allocations: 11.16 kB / 0.4969 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.8217, allocations: 5.047 kB / 0.4969 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001843/0.8219, allocations: 24.03 kB / 0.4969 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.8222, allocations: 126.2 kB / 0.497 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.8223, allocations: 0 / 0.497 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.8223, allocations: 0 / 0.497 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.8223, allocations: 4.766 kB / 0.4971 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005675/0.8229, allocations: 283.6 kB / 0.4973 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.8232, allocations: 142.5 kB / 0.4975 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.192e-05/0.8232, allocations: 32.48 kB / 0.4975 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.8233, allocations: 0 / 0.4975 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.675e-05/0.8234, allocations: 65.28 kB / 0.4976 GB, free: 10.74 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/0.8234, allocations: 3.938 kB / 0.4976 GB, free: 10.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002431/0.8237, allocations: 67.7 kB / 0.4976 GB, free: 10.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.8237, allocations: 85.59 kB / 0.4977 GB, free: 10.61 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.8239, allocations: 135.8 kB / 0.4978 GB, free: 10.51 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.8239, allocations: 25.7 kB / 0.4979 GB, free: 10.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.498e-05/0.8239, allocations: 93.23 kB / 0.4979 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.824, allocations: 10.61 kB / 0.498 GB, free: 10.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.824, allocations: 4 kB / 0.498 GB, free: 10.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.651e-05/0.8241, allocations: 324.9 kB / 0.4983 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-05/0.8241, allocations: 14.12 kB / 0.4983 GB, free: 10.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.739e-05/0.8242, allocations: 50.06 kB / 0.4983 GB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.574e-05/0.8243, allocations: 24.3 kB / 0.4984 GB, free: 10.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.8243, allocations: 0 / 0.4984 GB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002024/0.8245, allocations: 92.5 kB / 0.4984 GB, free: 9.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.8245, allocations: 3.875 kB / 0.4984 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.8245, allocations: 0 / 0.4984 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.8246, allocations: 5.312 kB / 0.4985 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.8247, allocations: 20.58 kB / 0.4985 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.8248, allocations: 5.344 kB / 0.4985 GB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.346e-05/0.8249, allocations: 7.844 kB / 0.4985 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.8249, allocations: 5.188 kB / 0.4985 GB, free: 9.961 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.981e-05/0.825, allocations: 108.7 kB / 0.4986 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.023e-05/0.8251, allocations: 57.22 kB / 0.4986 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.822e-05/0.8251, allocations: 16.98 kB / 0.4987 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.8251, allocations: 0 / 0.4987 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.852e-06/0.8252, allocations: 7.938 kB / 0.4987 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.8252, allocations: 0 / 0.4987 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.8255, allocations: 297.8 kB / 0.499 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.718e-06/0.8255, allocations: 0.5625 kB / 0.499 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.8257, allocations: 9.906 kB / 0.499 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.8257, allocations: 0 / 0.499 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.8257, allocations: 8.359 kB / 0.499 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.8257, allocations: 8.594 kB / 0.499 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.8257, allocations: 4 kB / 0.499 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002177/0.8259, allocations: 189.2 kB / 0.4992 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002458/0.8262, allocations: 0.5644 MB / 0.4997 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.088e-05/0.8263, allocations: 100.3 kB / 0.4998 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.14e-05/0.8263, allocations: 0.6562 kB / 0.4998 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.8265, allocations: 8.016 kB / 0.4998 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.8265, allocations: 5.672 kB / 0.4998 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.8266, allocations: 0.6094 kB / 0.4998 GB, free: 8.723 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.327e-05/0.8267, allocations: 107.2 kB / 0.4999 GB, free: 8.648 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001166/0.8278, allocations: 12.02 kB / 0.4999 GB, free: 8.648 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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001537/0.828, allocations: 103.3 kB / 0.5 GB, free: 8.551 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002288/0.8283, allocations: 47.78 kB / 0.5001 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.8283, allocations: 3.844 kB / 0.5001 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.25e-05/0.8283, allocations: 12.27 kB / 0.5001 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.8289, allocations: 28.84 kB / 0.5001 GB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004695/0.8294, allocations: 122.4 kB / 0.5002 GB, free: 8.449 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002342/0.8296, allocations: 0.7285 MB / 0.501 GB, free: 7.738 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8296, allocations: 0 / 0.501 GB, free: 7.738 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1)