Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",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.001663/0.001663, allocations: 195.3 kB / 7.852 MB, free: 2.488 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.078/2.078, 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.00127/0.00127, allocations: 95.78 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.1371/0.1371, allocations: 12.59 MB / 322 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.238/0.3752, allocations: 56.5 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.4642, allocations: 50.38 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3123/0.7766, allocations: 77.03 MB / 0.494 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.7769, allocations: 76.55 kB / 0.4941 GB, free: 11.9 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.004548/0.7815, allocations: 1.29 MB / 0.4954 GB, free: 11.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.7815, allocations: 11.38 kB / 0.4954 GB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.126e-05/0.7816, allocations: 11.75 kB / 0.4954 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.7818, allocations: 187.7 kB / 0.4956 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.7818, allocations: 3.844 kB / 0.4956 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.7818, allocations: 0 / 0.4956 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001098/0.782, allocations: 29.31 kB / 0.4956 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.7822, allocations: 129.2 kB / 0.4957 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.7823, allocations: 0 / 0.4957 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.7823, allocations: 0 / 0.4957 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.7823, allocations: 0 / 0.4957 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001209/0.7824, allocations: 153.2 kB / 0.4959 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.7826, allocations: 71.12 kB / 0.4959 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.851e-05/0.7827, allocations: 47.58 kB / 0.496 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.7827, allocations: 0 / 0.496 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.7828, allocations: 38.75 kB / 0.496 GB, free: 10.97 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.7828, allocations: 0 / 0.496 GB, free: 10.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001916/0.783, allocations: 75.12 kB / 0.4961 GB, free: 10.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.783, allocations: 56.56 kB / 0.4961 GB, free: 10.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.7831, allocations: 123.7 kB / 0.4963 GB, free: 10.78 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.7832, allocations: 29.64 kB / 0.4963 GB, free: 10.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.257e-05/0.7832, allocations: 88.98 kB / 0.4964 GB, free: 10.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.7832, allocations: 8.156 kB / 0.4964 GB, free: 10.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-06/0.7832, allocations: 0 / 0.4964 GB, free: 10.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.7833, allocations: 324.1 kB / 0.4967 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.595e-05/0.7833, allocations: 8.391 kB / 0.4967 GB, free: 10.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.715e-05/0.7834, allocations: 54.95 kB / 0.4968 GB, free: 10.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.319e-05/0.7834, allocations: 17.3 kB / 0.4968 GB, free: 10.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.7835, allocations: 0 / 0.4968 GB, free: 10.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001441/0.7836, allocations: 88.14 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.7836, allocations: 3.812 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.7837, allocations: 0 / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.7837, allocations: 3.75 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.7838, allocations: 16.88 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.7838, allocations: 2.312 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.198e-05/0.7839, allocations: 11.62 kB / 0.4969 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.7839, allocations: 3.875 kB / 0.4969 GB, free: 10.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.989e-05/0.784, allocations: 118.4 kB / 0.497 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.7841, allocations: 71.77 kB / 0.4971 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.781e-05/0.7842, allocations: 13.03 kB / 0.4971 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.7842, allocations: 0 / 0.4971 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.7842, allocations: 0 / 0.4971 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.7842, allocations: 4.828 kB / 0.4971 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.856e-05/0.7843, allocations: 153 kB / 0.4972 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7843, allocations: 0 / 0.4972 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.7844, allocations: 10.22 kB / 0.4972 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.7845, allocations: 3.625 kB / 0.4973 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.7845, allocations: 7.938 kB / 0.4973 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.7845, allocations: 160 / 0.4973 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.7845, allocations: 1.125 kB / 0.4973 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000147/0.7847, allocations: 107.1 kB / 0.4974 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001914/0.7849, allocations: 491.7 kB / 0.4978 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.707e-05/0.7849, allocations: 99.66 kB / 0.4979 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.785, allocations: 0 / 0.4979 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.56e-05/0.785, allocations: 1.406 kB / 0.4979 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-06/0.785, allocations: 0 / 0.4979 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.785, allocations: 3.656 kB / 0.4979 GB, free: 9.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.687e-05/0.7851, allocations: 109 kB / 0.498 GB, free: 9.191 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001066/0.7862, allocations: 7.75 kB / 0.498 GB, free: 9.191 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 9.91e-05/0.7863, allocations: 97.67 kB / 0.4981 GB, free: 9.102 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001252/0.7864, allocations: 42.47 kB / 0.4982 GB, free: 9.094 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.7865, allocations: 192 / 0.4982 GB, free: 9.094 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.32e-07/0.7865, allocations: 0 / 0.4982 GB, free: 9.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.7868, allocations: 53.61 kB / 0.4982 GB, free: 9.082 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.7871, allocations: 116.4 kB / 0.4983 GB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.7873, allocations: 0.7178 MB / 0.499 GB, free: 8.297 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.7873, allocations: 4 kB / 0.499 GB, free: 8.293 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1)