Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.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) 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.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009538/0.0009539, allocations: 179.1 kB / 8.477 MB, free: 1.883 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.104/1.104, allocations: 205.2 MB / 214.1 MB, free: 1.891 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009144/0.0009145, allocations: 79.39 kB / 262.1 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1432/0.1442, allocations: 52.97 MB / 315.1 MB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07363/0.2178, allocations: 47.59 MB / 362.6 MB, free: 7.312 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.427, allocations: 82.24 MB / 444.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001714/0.4272, allocations: 72.66 kB / 445 MB, free: 13.39 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.07848/0.5057, allocations: 43.1 MB / 488.1 MB, free: 8.543 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.5058, allocations: 8 kB / 488.1 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.5059, allocations: 71.91 kB / 488.1 MB, free: 8.465 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000519/0.5065, allocations: 379.9 kB / 488.5 MB, free: 8.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.5065, allocations: 8 kB / 488.5 MB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.62e-05/0.5066, allocations: 16 kB / 488.5 MB, free: 8.031 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002709/0.5069, allocations: 144.3 kB / 488.7 MB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.5073, allocations: 275 kB / 488.9 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.5073, allocations: 0 / 488.9 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.155e-05/0.5074, allocations: 12 kB / 488.9 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.5074, allocations: 7.938 kB / 489 MB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.5087, allocations: 0.7629 MB / 489.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.509, allocations: 202.4 kB / 489.9 MB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.5092, allocations: 180.8 kB / 490.1 MB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.5093, allocations: 4 kB / 490.1 MB, free: 6.402 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003924/0.5097, allocations: 382.4 kB / 490.5 MB, free: 5.992 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.623e-06/0.5097, allocations: 0 / 490.5 MB, free: 5.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007347/0.5104, allocations: 456.9 kB / 490.9 MB, free: 5.539 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.5106, allocations: 285 kB / 491.2 MB, free: 5.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.5116, allocations: 0.7961 MB / 492 MB, free: 4.395 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.5116, allocations: 37.7 kB / 492 MB, free: 4.352 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.157e-05/0.5117, allocations: 102 kB / 492.1 MB, free: 4.246 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.901e-05/0.5118, allocations: 59.36 kB / 492.2 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.5118, allocations: 11.94 kB / 492.2 MB, free: 4.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5119, allocations: 338.7 kB / 492.5 MB, free: 3.836 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.5122, allocations: 136.2 kB / 492.7 MB, free: 3.703 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.5124, allocations: 158.2 kB / 492.8 MB, free: 3.543 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.5126, allocations: 111.9 kB / 492.9 MB, free: 3.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5126, allocations: 3.984 kB / 492.9 MB, free: 3.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006655/0.5133, allocations: 413.2 kB / 493.3 MB, free: 3.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.5133, allocations: 8 kB / 493.3 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.5133, allocations: 0 / 493.3 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5134, allocations: 0 / 493.3 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.894e-05/0.5134, allocations: 4 kB / 493.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.5134, allocations: 8.031 kB / 493.4 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.5137, allocations: 31.88 kB / 493.4 MB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/0.5139, allocations: 259.8 kB / 493.6 MB, free: 2.715 MB / 362.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.0003051/0.5142, allocations: 378.5 kB / 494 MB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.5143, allocations: 79.06 kB / 494.1 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002229/0.5146, allocations: 134.9 kB / 494.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.5146, allocations: 4 kB / 494.2 MB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5146, allocations: 0 / 494.2 MB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.5146, allocations: 0 / 494.2 MB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.5158, allocations: 1.006 MB / 495.2 MB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5159, allocations: 3.984 kB / 495.2 MB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.387e-05/0.5159, allocations: 4 kB / 495.2 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.5159, allocations: 4 kB / 495.2 MB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.43e-05/0.516, allocations: 43.95 kB / 495.3 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.516, allocations: 4 kB / 495.3 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.516, allocations: 0 / 495.3 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007344/0.5167, allocations: 0.5805 MB / 495.9 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008515/0.5176, allocations: 0.9636 MB / 496.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006566/0.5183, allocations: 447.6 kB / 497.3 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.5184, allocations: 24 kB / 497.3 MB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.5187, allocations: 27.97 kB / 497.3 MB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.5189, allocations: 71.92 kB / 497.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/0.5191, allocations: 267.5 kB / 497.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007844/0.5199, allocations: 0.6509 MB / 498.3 MB, free: 13.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001004/0.5209, allocations: 76 kB / 498.4 MB, free: 13.82 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.0001973/0.5211, allocations: 145.4 kB / 498.5 MB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006572/0.5218, allocations: 0.56 MB / 499.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5218, allocations: 0 / 499.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005018/0.5223, allocations: 0.5483 MB / 499.6 MB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008587/0.5232, allocations: 222.5 kB / 499.8 MB, free: 12.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.5249, allocations: 1.049 MB / 0.4891 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007495/0.5257, allocations: 1.048 MB / 0.4902 GB, free: 10.07 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.5257, allocations: 0 / 0.4902 GB, free: 10.07 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)