Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 193.9 kB / 8.485 MB, free: 1.785 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.12/1.12, allocations: 205.2 MB / 214.1 MB, free: 13.91 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.000957/0.000957, allocations: 87.22 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09344/0.09442, allocations: 52.99 MB / 315.1 MB, free: 8.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.2799, allocations: 47.56 MB / 362.6 MB, free: 45.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.103/0.3829, allocations: 98.95 MB / 461.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.3832, allocations: 83.95 kB / 461.7 MB, free: 2.914 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.4433/0.8265, allocations: 129 MB / 0.5768 GB, free: 64.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.8265, allocations: 12 kB / 0.5768 GB, free: 64.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03054/0.8571, allocations: 7.626 MB / 0.5843 GB, free: 56.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01685/0.874, allocations: 7.346 MB / 0.5914 GB, free: 49.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.8742, allocations: 195.9 kB / 0.5916 GB, free: 48.92 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001796/0.876, allocations: 359.8 kB / 0.592 GB, free: 48.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01354/0.8895, allocations: 10.38 MB / 0.6021 GB, free: 38.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01711/0.9067, allocations: 14.33 MB / 0.6161 GB, free: 22.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001754/0.9069, allocations: 75.33 kB / 0.6162 GB, free: 22.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000752/0.9076, allocations: 39.98 kB / 0.6162 GB, free: 22.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00158/0.9092, allocations: 1.736 MB / 0.6179 GB, free: 20.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1691/1.078, allocations: 62.44 MB / 0.6789 GB, free: 87.74 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004741/1.083, allocations: 4.614 MB / 0.6834 GB, free: 87.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003319/1.086, allocations: 3.555 MB / 0.6869 GB, free: 87.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01928/1.106, allocations: 15.42 MB / 0.7019 GB, free: 82.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/1.106, allocations: 62.84 kB / 0.702 GB, free: 82.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=292): time 5.46e-06/1.106, allocations: 0 / 0.702 GB, free: 82.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=342): time 0.06547/1.171, allocations: 29.09 MB / 0.7304 GB, free: 73.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/1.171, allocations: 213.5 kB / 0.7306 GB, free: 73.47 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006628/1.178, allocations: 4.369 MB / 0.7349 GB, free: 71.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000673/1.179, allocations: 29.22 kB / 0.7349 GB, free: 71.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0019/1.181, allocations: 4.179 MB / 0.739 GB, free: 68.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001444/1.182, allocations: 1.231 MB / 0.7402 GB, free: 67.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004873/1.183, allocations: 0 / 0.7402 GB, free: 67.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004028/1.183, allocations: 0.6973 MB / 0.7409 GB, free: 67.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005307/1.188, allocations: 4.526 MB / 0.7453 GB, free: 65.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006202/1.195, allocations: 9.733 MB / 0.7548 GB, free: 54.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006708/1.201, allocations: 6.586 MB / 0.7612 GB, free: 49.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-05/1.201, allocations: 52 kB / 0.7613 GB, free: 49.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.03702/1.238, allocations: 17.65 MB / 0.7785 GB, free: 35.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/1.238, allocations: 7.703 kB / 0.7785 GB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/1.239, allocations: 184 kB / 0.7787 GB, free: 35.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02264/1.261, allocations: 5.34 MB / 0.7839 GB, free: 32.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007658/1.269, allocations: 2.077 MB / 0.7859 GB, free: 30.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02476/1.294, allocations: 20.89 MB / 0.8063 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007787/1.302, allocations: 315.3 kB / 0.8066 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00188/1.303, allocations: 0.5313 MB / 0.8071 GB, free: 9.094 MB / 410.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.001918/1.305, allocations: 0.5596 MB / 0.8077 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/1.306, allocations: 485.7 kB / 0.8081 GB, free: 8.051 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1406/1.447, allocations: 12.01 MB / 0.8199 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001342/1.447, allocations: 51.89 kB / 0.8199 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.387e-05/1.447, allocations: 7.125 kB / 0.8199 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.34e-05/1.447, allocations: 12.84 kB / 0.8199 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04358/1.491, allocations: 22.43 MB / 0.8418 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.269e-05/1.491, allocations: 3.344 kB / 0.8419 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002981/1.494, allocations: 0.5056 MB / 0.8423 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01895/1.513, allocations: 4.329 MB / 0.8466 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006342/1.514, allocations: 10.38 kB / 0.8466 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01974/1.533, allocations: 16.82 MB / 0.863 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.533, allocations: 12.5 kB / 0.863 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03106/1.564, allocations: 17.17 MB / 0.8798 GB, free: 94.27 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04899/1.614, allocations: 33.24 MB / 0.9123 GB, free: 73.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002875/1.616, allocations: 1.185 MB / 0.9134 GB, free: 72.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008947/1.617, allocations: 8 kB / 0.9134 GB, free: 72.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002744/1.62, allocations: 130.2 kB / 0.9135 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004744/1.621, allocations: 155.4 kB / 0.9137 GB, free: 71.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003107/1.621, allocations: 86.59 kB / 0.9138 GB, free: 71.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00396/1.625, allocations: 2.923 MB / 0.9166 GB, free: 69.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007579/1.632, allocations: 1.479 MB / 0.9181 GB, free: 67.87 MB / 410.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.0006524/1.633, allocations: 175.2 kB / 0.9182 GB, free: 67.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01205/1.645, allocations: 10.25 MB / 0.9282 GB, free: 58.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.645, allocations: 0 / 0.9282 GB, free: 58.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004285/1.65, allocations: 3.864 MB / 0.932 GB, free: 54.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/1.652, allocations: 467.4 kB / 0.9325 GB, free: 54.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02206/1.674, allocations: 13.68 MB / 0.9458 GB, free: 40.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006226/1.68, allocations: 5.153 MB / 0.9509 GB, free: 35.47 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/1.681, allocations: 2.516 kB / 0.9509 GB, free: 35.47 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)