Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX",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 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 182 kB / 8.129 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.132/1.132, allocations: 221.4 MB / 229.9 MB, free: 3.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008775/0.0008775, allocations: 94.28 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09474/0.09564, allocations: 55.81 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.2829, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08224/0.3652, allocations: 82.89 MB / 469.9 MB, free: 3.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3654, allocations: 69.69 kB / 470 MB, free: 3.793 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.2079/0.5734, allocations: 43.65 MB / 0.5016 GB, free: 100.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.5734, allocations: 13.88 kB / 0.5016 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.5735, allocations: 78.75 kB / 0.5017 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.574, allocations: 372.2 kB / 0.502 GB, free: 99.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.5741, allocations: 14.88 kB / 0.502 GB, free: 99.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.73e-05/0.5741, allocations: 19.62 kB / 0.502 GB, free: 99.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002547/0.5744, allocations: 139.3 kB / 0.5022 GB, free: 99.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.5748, allocations: 276.6 kB / 0.5024 GB, free: 99.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.5748, allocations: 0 / 0.5024 GB, free: 99.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.302e-05/0.5749, allocations: 7.125 kB / 0.5024 GB, free: 99.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.5749, allocations: 4 kB / 0.5024 GB, free: 99.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.5762, allocations: 0.7545 MB / 0.5032 GB, free: 99.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.5765, allocations: 203.4 kB / 0.5034 GB, free: 99.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.5767, allocations: 179.6 kB / 0.5035 GB, free: 99.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.5767, allocations: 4.125 kB / 0.5036 GB, free: 99.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.577, allocations: 389.4 kB / 0.5039 GB, free: 99.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 1.553e-06/0.577, allocations: 0 / 0.5039 GB, free: 99.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006648/0.5777, allocations: 449.6 kB / 0.5044 GB, free: 99.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.5778, allocations: 282.7 kB / 0.5046 GB, free: 99.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008545/0.5787, allocations: 0.8016 MB / 0.5054 GB, free: 98.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.156e-05/0.5787, allocations: 32.2 kB / 0.5054 GB, free: 98.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.5788, allocations: 107.9 kB / 0.5055 GB, free: 98.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.5788, allocations: 65.56 kB / 0.5056 GB, free: 98.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.5789, allocations: 7.906 kB / 0.5056 GB, free: 98.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.696e-05/0.5789, allocations: 332.6 kB / 0.5059 GB, free: 98.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.5791, allocations: 137.2 kB / 0.5061 GB, free: 98.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.5793, allocations: 154.8 kB / 0.5062 GB, free: 98.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.5795, allocations: 127.3 kB / 0.5063 GB, free: 97.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5795, allocations: 0 / 0.5063 GB, free: 97.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005551/0.5801, allocations: 419.6 kB / 0.5067 GB, free: 97.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.5801, allocations: 3.875 kB / 0.5067 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.5801, allocations: 0 / 0.5067 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.5801, allocations: 3.656 kB / 0.5067 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.576e-05/0.5802, allocations: 7.969 kB / 0.5067 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.5802, allocations: 3.75 kB / 0.5067 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.5804, allocations: 31.81 kB / 0.5068 GB, free: 97.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.5806, allocations: 266.8 kB / 0.507 GB, free: 97.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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 0.0002086/0.5808, allocations: 376.8 kB / 0.5074 GB, free: 97.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.525e-05/0.5809, allocations: 77.72 kB / 0.5075 GB, free: 97.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.5811, allocations: 132.8 kB / 0.5076 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.5811, allocations: 4 kB / 0.5076 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.5811, allocations: 0 / 0.5076 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5811, allocations: 0 / 0.5076 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000998/0.5821, allocations: 1.015 MB / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.5821, allocations: 0 / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-05/0.5821, allocations: 7.625 kB / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.5821, allocations: 4.438 kB / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.354e-05/0.5822, allocations: 42.91 kB / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5822, allocations: 0.6875 kB / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.5822, allocations: 4 kB / 0.5086 GB, free: 96.79 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006177/0.5828, allocations: 0.574 MB / 0.5092 GB, free: 96.53 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009183/0.5838, allocations: 0.9646 MB / 0.5101 GB, free: 95.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006437/0.5844, allocations: 442.1 kB / 0.5106 GB, free: 95.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.5846, allocations: 22.72 kB / 0.5106 GB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002773/0.5849, allocations: 27.47 kB / 0.5106 GB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.5851, allocations: 71.97 kB / 0.5107 GB, free: 95.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/0.5853, allocations: 268.6 kB / 0.5109 GB, free: 95.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006799/0.586, allocations: 0.654 MB / 0.5116 GB, free: 95.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009557/0.587, allocations: 76.19 kB / 0.5116 GB, free: 95.24 MB / 378.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.0001682/0.5872, allocations: 143.8 kB / 0.5118 GB, free: 95.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.5877, allocations: 0.554 MB / 0.5123 GB, free: 94.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5878, allocations: 1.25 kB / 0.5123 GB, free: 94.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004224/0.5882, allocations: 0.5515 MB / 0.5129 GB, free: 94.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008129/0.589, allocations: 220.2 kB / 0.5131 GB, free: 94.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.5904, allocations: 1.055 MB / 0.5141 GB, free: 93.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/0.591, allocations: 1.039 MB / 0.5151 GB, free: 92.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.591, allocations: 0 / 0.5151 GB, free: 92.23 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)