Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR",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.001293/0.001293, allocations: 199.7 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001133, allocations: 96.72 kB / 286.3 MB, free: 5.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1826/0.1826, allocations: 45.14 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2496/0.4322, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.5414, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3607/0.9022, allocations: 118.4 MB / 0.6194 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.9025, allocations: 75.77 kB / 0.6195 GB, free: 0.7305 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.708/1.61, allocations: 161.9 MB / 0.7777 GB, free: 111 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.611, allocations: 8.938 kB / 0.7777 GB, free: 111 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02705/1.638, allocations: 5.806 MB / 0.7833 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02053/1.658, allocations: 7.207 MB / 0.7904 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005642/1.659, allocations: 228.5 kB / 0.7906 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00382/1.663, allocations: 429.1 kB / 0.791 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02285/1.685, allocations: 12.05 MB / 0.8028 GB, free: 109.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03606/1.722, allocations: 16.23 MB / 0.8186 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006013/1.722, allocations: 84.97 kB / 0.8187 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002965/1.725, allocations: 47.75 kB / 0.8188 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0022/1.727, allocations: 1.842 MB / 0.8206 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1034/1.831, allocations: 72.15 MB / 0.891 GB, free: 51.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005979/1.837, allocations: 3.933 MB / 0.8949 GB, free: 47.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004377/1.841, allocations: 2.936 MB / 0.8977 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03148/1.873, allocations: 15.46 MB / 0.9128 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.219e-05/1.873, allocations: 68.5 kB / 0.9129 GB, free: 30.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=292): time 8.737e-06/1.873, allocations: 0 / 0.9129 GB, free: 30.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=352): time 0.0574/1.93, allocations: 17.69 MB / 0.9302 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/1.93, allocations: 188.8 kB / 0.9303 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/1.942, allocations: 4.648 MB / 0.9349 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007828/1.943, allocations: 29.7 kB / 0.9349 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004367/1.947, allocations: 4.734 MB / 0.9395 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002508/1.95, allocations: 1.264 MB / 0.9408 GB, free: 6.234 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001673/1.952, allocations: 0 / 0.9408 GB, free: 6.234 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001239/1.953, allocations: 0.73 MB / 0.9415 GB, free: 5.617 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006119/1.959, allocations: 3.205 MB / 0.9446 GB, free: 2.711 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/1.97, allocations: 8.9 MB / 0.9533 GB, free: 7.094 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/1.981, allocations: 5.664 MB / 0.9588 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003268/1.982, allocations: 56 kB / 0.9589 GB, free: 1.355 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1298) (initialization): time 0.2861/2.268, allocations: 12.11 MB / 0.9707 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/2.268, allocations: 7.406 kB / 0.9707 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003128/2.268, allocations: 204.6 kB / 0.9709 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004725/2.273, allocations: 1.304 MB / 0.9722 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00879/2.282, allocations: 2.25 MB / 0.9744 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01372/2.296, allocations: 7.226 MB / 0.9814 GB, free: 164.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009502/2.305, allocations: 335 kB / 0.9818 GB, free: 164.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002834/2.308, allocations: 0.5835 MB / 0.9823 GB, free: 164.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 927 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1212): * Single equations (assignments): 1205 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00346/2.311, allocations: 0.598 MB / 0.9829 GB, free: 164.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001784/2.313, allocations: 0.5012 MB / 0.9834 GB, free: 164.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.015/2.328, allocations: 5.373 MB / 0.9887 GB, free: 164.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000146/2.328, allocations: 32.84 kB / 0.9887 GB, free: 164.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.283e-05/2.329, allocations: 6.625 kB / 0.9887 GB, free: 164.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.809e-05/2.329, allocations: 13.69 kB / 0.9887 GB, free: 164.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03628/2.365, allocations: 12.66 MB / 1.001 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.669e-05/2.365, allocations: 18.12 kB / 1.001 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002748/2.368, allocations: 0.4951 MB / 1.002 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003736/2.372, allocations: 0.8625 MB / 1.002 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000628/2.372, allocations: 28.2 kB / 1.002 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008559/2.381, allocations: 5.012 MB / 1.007 GB, free: 161.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.732e-05/2.381, allocations: 21.88 kB / 1.007 GB, free: 161.5 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01898/2.4, allocations: 10.3 MB / 1.017 GB, free: 158.5 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0274/2.427, allocations: 19.18 MB / 1.036 GB, free: 149.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/2.429, allocations: 0.5328 MB / 1.037 GB, free: 148.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001725/2.431, allocations: 16.3 kB / 1.037 GB, free: 148.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003571/2.435, allocations: 96.47 kB / 1.037 GB, free: 148.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006477/2.435, allocations: 180.6 kB / 1.037 GB, free: 148.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005345/2.436, allocations: 108 kB / 1.037 GB, free: 148.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.008962/2.445, allocations: 3.095 MB / 1.04 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0139/2.459, allocations: 1.449 MB / 1.041 GB, free: 147.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 268 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001491/2.46, allocations: 229.9 kB / 1.042 GB, free: 147.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01488/2.475, allocations: 7.57 MB / 1.049 GB, free: 144.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.096e-05/2.475, allocations: 0 / 1.049 GB, free: 144.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004527/2.48, allocations: 2.344 MB / 1.051 GB, free: 142.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/2.484, allocations: 0.4927 MB / 1.052 GB, free: 141.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03641/2.521, allocations: 12.93 MB / 1.064 GB, free: 130 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01435/2.535, allocations: 5.755 MB / 1.07 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.683e-06/2.535, allocations: 0 / 1.07 GB, free: 125.7 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1)