Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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 trunk/package.mo): time 0.001053/0.001053, allocations: 203.6 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.184/1.184, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008722/0.0008723, allocations: 94.56 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09464/0.09553, allocations: 56.9 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.1807, allocations: 51.48 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2353/0.4161, allocations: 101.3 MB / 496 MB, free: 8.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.4163, allocations: 86.77 kB / 496.1 MB, free: 8.035 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.4517/0.868, allocations: 132.9 MB / 0.6142 GB, free: 72.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.8681, allocations: 10.31 kB / 0.6142 GB, free: 72.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02759/0.8957, allocations: 7.631 MB / 0.6217 GB, free: 71.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01418/0.9099, allocations: 6.347 MB / 0.6279 GB, free: 70.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.9101, allocations: 191.3 kB / 0.6281 GB, free: 70.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001307/0.9114, allocations: 346.5 kB / 0.6284 GB, free: 70.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01492/0.9263, allocations: 10.4 MB / 0.6386 GB, free: 69.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02069/0.947, allocations: 14.33 MB / 0.6526 GB, free: 61.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/0.9473, allocations: 83.41 kB / 0.6526 GB, free: 61.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007449/0.948, allocations: 32.53 kB / 0.6527 GB, free: 61.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001681/0.9497, allocations: 1.72 MB / 0.6544 GB, free: 61.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06074/1.01, allocations: 62.39 MB / 0.7153 GB, free: 16.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004678/1.015, allocations: 4.626 MB / 0.7198 GB, free: 11.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003357/1.019, allocations: 3.567 MB / 0.7233 GB, free: 8.445 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01977/1.038, allocations: 15.4 MB / 0.7383 GB, free: 10.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/1.038, allocations: 67.69 kB / 0.7384 GB, free: 10.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=292): time 5.24e-06/1.038, allocations: 0 / 0.7384 GB, free: 10.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=342): time 0.1857/1.224, allocations: 28.98 MB / 0.7667 GB, free: 133 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/1.224, allocations: 215.7 kB / 0.7669 GB, free: 132.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005434/1.23, allocations: 4.339 MB / 0.7711 GB, free: 132.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000623/1.23, allocations: 29.36 kB / 0.7711 GB, free: 132.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/1.232, allocations: 4.179 MB / 0.7752 GB, free: 129.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/1.233, allocations: 1.228 MB / 0.7764 GB, free: 129.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004524/1.233, allocations: 2.297 kB / 0.7764 GB, free: 129.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003411/1.234, allocations: 0.7025 MB / 0.7771 GB, free: 128.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.239, allocations: 4.526 MB / 0.7815 GB, free: 128.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007675/1.247, allocations: 9.724 MB / 0.791 GB, free: 122 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007879/1.254, allocations: 6.585 MB / 0.7975 GB, free: 120.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001503/1.255, allocations: 53.88 kB / 0.7975 GB, free: 120.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.03867/1.293, allocations: 17.64 MB / 0.8147 GB, free: 115.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/1.293, allocations: 5.406 kB / 0.8147 GB, free: 115.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/1.294, allocations: 184.4 kB / 0.8149 GB, free: 115.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02222/1.316, allocations: 5.342 MB / 0.8201 GB, free: 114.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007561/1.323, allocations: 2.088 MB / 0.8222 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02611/1.35, allocations: 20.89 MB / 0.8426 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008259/1.358, allocations: 316.3 kB / 0.8429 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.359, allocations: 0.5314 MB / 0.8434 GB, free: 104.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1114): * Single equations (assignments): 1106 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001379/1.361, allocations: 0.5559 MB / 0.8439 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008628/1.361, allocations: 487.7 kB / 0.8444 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02903/1.391, allocations: 12 MB / 0.8561 GB, free: 97.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001187/1.391, allocations: 46.91 kB / 0.8562 GB, free: 97.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.391, allocations: 8.703 kB / 0.8562 GB, free: 97.72 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.093e-05/1.391, allocations: 14.06 kB / 0.8562 GB, free: 97.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04324/1.434, allocations: 22.42 MB / 0.8781 GB, free: 79.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.06e-05/1.434, allocations: 8 kB / 0.8781 GB, free: 79.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003067/1.437, allocations: 0.5116 MB / 0.8786 GB, free: 78.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01846/1.456, allocations: 4.329 MB / 0.8828 GB, free: 76.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006809/1.456, allocations: 11.33 kB / 0.8828 GB, free: 76.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.019/1.475, allocations: 16.82 MB / 0.8993 GB, free: 60 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.475, allocations: 8 kB / 0.8993 GB, free: 59.99 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02957/1.505, allocations: 17.18 MB / 0.916 GB, free: 42.53 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1652/1.67, allocations: 33.23 MB / 0.9485 GB, free: 122.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/1.671, allocations: 0.493 MB / 0.949 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008142/1.672, allocations: 5.125 kB / 0.949 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00258/1.675, allocations: 135.3 kB / 0.9491 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004589/1.675, allocations: 147.3 kB / 0.9492 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003584/1.676, allocations: 89.95 kB / 0.9493 GB, free: 122.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00349/1.679, allocations: 2.903 MB / 0.9522 GB, free: 122 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00662/1.686, allocations: 1.49 MB / 0.9536 GB, free: 122 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000526/1.686, allocations: 169.1 kB / 0.9538 GB, free: 121.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01161/1.698, allocations: 10.25 MB / 0.9638 GB, free: 120.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/1.698, allocations: 0 / 0.9638 GB, free: 120.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00418/1.702, allocations: 3.863 MB / 0.9676 GB, free: 119.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/1.704, allocations: 457.1 kB / 0.968 GB, free: 119.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0202/1.724, allocations: 13.67 MB / 0.9813 GB, free: 114.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005905/1.73, allocations: 5.134 MB / 0.9864 GB, free: 112.8 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/1.73, allocations: 1.062 kB / 0.9864 GB, free: 112.8 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)