Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",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.001813/0.001813, allocations: 186.4 kB / 7.839 MB, free: 2.469 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.856/1.856, 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.0014/0.0014, allocations: 90.14 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.1107/0.1107, allocations: 12.58 MB / 322 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2824/0.3932, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.4944, allocations: 50.38 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.8362, allocations: 76.91 MB / 0.4939 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.8365, allocations: 75.56 kB / 0.494 GB, free: 11.96 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.004398/0.8409, allocations: 1.142 MB / 0.4951 GB, free: 11.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.841, allocations: 11.41 kB / 0.4951 GB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.937e-05/0.841, allocations: 3.906 kB / 0.4951 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.8412, allocations: 189.9 kB / 0.4953 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.8413, allocations: 3.906 kB / 0.4953 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.8413, allocations: 7.906 kB / 0.4953 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001175/0.8414, allocations: 15.28 kB / 0.4953 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.8417, allocations: 96.25 kB / 0.4954 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.8417, allocations: 0 / 0.4954 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.8417, allocations: 0 / 0.4954 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.8417, allocations: 0 / 0.4954 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003747/0.8421, allocations: 253.9 kB / 0.4957 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.8423, allocations: 130.4 kB / 0.4958 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.027e-05/0.8424, allocations: 25.47 kB / 0.4958 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.8424, allocations: 3.516 kB / 0.4958 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.8424, allocations: 33.69 kB / 0.4958 GB, free: 10.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.924e-06/0.8425, allocations: 3.688 kB / 0.4958 GB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002024/0.8427, allocations: 52.5 kB / 0.4959 GB, free: 10.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.8427, allocations: 77.11 kB / 0.496 GB, free: 10.69 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.8429, allocations: 125 kB / 0.4961 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.8429, allocations: 26.97 kB / 0.4961 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.939e-05/0.8429, allocations: 87.42 kB / 0.4962 GB, free: 10.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.8429, allocations: 5.391 kB / 0.4962 GB, free: 10.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.843, allocations: 0 / 0.4962 GB, free: 10.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.081e-05/0.843, allocations: 315.6 kB / 0.4965 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.695e-05/0.843, allocations: 7.75 kB / 0.4965 GB, free: 10.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.116e-05/0.8431, allocations: 32.16 kB / 0.4965 GB, free: 10.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.768e-05/0.8431, allocations: 8.875 kB / 0.4966 GB, free: 10.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.8431, allocations: 0 / 0.4966 GB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001045/0.8433, allocations: 54.72 kB / 0.4966 GB, free: 10.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.8433, allocations: 3.906 kB / 0.4966 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.8433, allocations: 4.109 kB / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.8433, allocations: 7.812 kB / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.8435, allocations: 9.844 kB / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.8435, allocations: 0 / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.099e-05/0.8435, allocations: 9.438 kB / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.8436, allocations: 3.906 kB / 0.4966 GB, free: 10.07 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: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * 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 6.506e-05/0.8436, allocations: 104.9 kB / 0.4967 GB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.636e-05/0.8437, allocations: 51.89 kB / 0.4968 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.8438, allocations: 16.95 kB / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.8438, allocations: 0 / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.8438, allocations: 0 / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.8439, allocations: 192 / 0.4968 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.844, allocations: 140.5 kB / 0.4969 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.844, allocations: 3.812 kB / 0.4969 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.775e-05/0.8441, allocations: 13.02 kB / 0.497 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.8442, allocations: 3.906 kB / 0.497 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.8442, allocations: 1.359 kB / 0.497 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.8442, allocations: 4 kB / 0.497 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.8442, allocations: 3.906 kB / 0.497 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001375/0.8443, allocations: 168.3 kB / 0.4971 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001706/0.8445, allocations: 0.5321 MB / 0.4976 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.998e-05/0.8446, allocations: 95.67 kB / 0.4977 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.8446, allocations: 7.781 kB / 0.4977 GB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.8448, allocations: 1.359 kB / 0.4977 GB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.8448, allocations: 3.844 kB / 0.4978 GB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.8448, allocations: 1.359 kB / 0.4978 GB, free: 8.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.052e-05/0.8449, allocations: 108.8 kB / 0.4979 GB, free: 8.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001179/0.8461, allocations: 3.844 kB / 0.4979 GB, free: 8.859 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: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * 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.0001321/0.8463, allocations: 96.2 kB / 0.498 GB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.8464, allocations: 20.83 kB / 0.498 GB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.8464, allocations: 0 / 0.498 GB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.672e-05/0.8465, allocations: 3.844 kB / 0.498 GB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.8468, allocations: 21.78 kB / 0.498 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003234/0.8472, allocations: 102.2 kB / 0.4981 GB, free: 8.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.8474, allocations: 0.7082 MB / 0.4988 GB, free: 7.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.253e-06/0.8474, allocations: 0 / 0.4988 GB, free: 7.957 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1)