Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) 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(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.002693/0.002693, allocations: 184.5 kB / 7.462 MB, free: 2.5 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.151/1.151, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.000949/0.0009491, allocations: 96.14 kB / 280.1 MB, free: 1.18 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04019/0.04019, allocations: 8.839 MB / 339.7 MB, free: 5.645 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1906/0.2309, allocations: 58.49 MB / 398.2 MB, free: 67.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07756/0.3084, allocations: 52.39 MB / 450.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2595/0.568, allocations: 88.63 MB / 0.5266 GB, free: 4.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.5682, allocations: 74.31 kB / 0.5267 GB, free: 4.488 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.1615/0.7297, allocations: 63.55 MB / 0.5887 GB, free: 11.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.7297, allocations: 11.94 kB / 0.5887 GB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009395/0.7391, allocations: 1.602 MB / 0.5903 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004634/0.7438, allocations: 1.711 MB / 0.592 GB, free: 8.551 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.744, allocations: 96 kB / 0.5921 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/0.7456, allocations: 175.9 kB / 0.5922 GB, free: 8.285 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01002/0.7556, allocations: 5.317 MB / 0.5974 GB, free: 2.961 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01494/0.7706, allocations: 7.004 MB / 0.6043 GB, free: 11.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.7708, allocations: 27.66 kB / 0.6043 GB, free: 11.56 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001127/0.7719, allocations: 19.94 kB / 0.6043 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001403/0.7733, allocations: 0.9116 MB / 0.6052 GB, free: 10.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03865/0.812, allocations: 23.89 MB / 0.6285 GB, free: 2.074 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002086/0.8141, allocations: 1.072 MB / 0.6296 GB, free: 1.004 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.8154, allocations: 0.719 MB / 0.6303 GB, free: 292 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008425/0.8239, allocations: 4.297 MB / 0.6345 GB, free: 11.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/0.824, allocations: 47.5 kB / 0.6345 GB, free: 11.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 6.011e-06/0.824, allocations: 0 / 0.6345 GB, free: 11.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.01257/0.8366, allocations: 5.903 MB / 0.6403 GB, free: 5.625 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.8366, allocations: 72.66 kB / 0.6404 GB, free: 5.539 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003513/0.8401, allocations: 1.894 MB / 0.6422 GB, free: 3.648 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.07e-05/0.8402, allocations: 25.7 kB / 0.6422 GB, free: 3.617 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.8416, allocations: 2.056 MB / 0.6442 GB, free: 1.527 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004976/0.8421, allocations: 0.5781 MB / 0.6448 GB, free: 0.9414 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.8424, allocations: 3.938 kB / 0.6448 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003683/0.8427, allocations: 0.5233 MB / 0.6453 GB, free: 412 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1419/0.9847, allocations: 1.277 MB / 0.6466 GB, free: 176.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00243/0.9872, allocations: 3.515 MB / 0.65 GB, free: 173.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/0.9895, allocations: 2.183 MB / 0.6521 GB, free: 173.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-05/0.9896, allocations: 25.97 kB / 0.6522 GB, free: 173.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=540) (initialization): time 0.006202/0.9958, allocations: 4.438 MB / 0.6565 GB, free: 173.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.9958, allocations: 11.78 kB / 0.6565 GB, free: 173.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.587e-05/0.9959, allocations: 76.81 kB / 0.6566 GB, free: 173.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003856/0.9963, allocations: 204.6 kB / 0.6568 GB, free: 173.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002793/0.9991, allocations: 0.96 MB / 0.6577 GB, free: 173.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/1.001, allocations: 1.975 MB / 0.6596 GB, free: 172.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/1.003, allocations: 125.5 kB / 0.6598 GB, free: 172.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003259/1.004, allocations: 248.4 kB / 0.66 GB, free: 172.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 362 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (506): * Single equations (assignments): 501 * Array equations: 4 * 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 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004923/1.004, allocations: 305.1 kB / 0.6603 GB, free: 172.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000265/1.004, allocations: 191.5 kB / 0.6605 GB, free: 172.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00252/1.007, allocations: 1.835 MB / 0.6623 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/1.007, allocations: 20.02 kB / 0.6623 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/1.007, allocations: 3.906 kB / 0.6623 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/1.007, allocations: 9.047 kB / 0.6623 GB, free: 172.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007212/1.014, allocations: 4.799 MB / 0.667 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/1.014, allocations: 3.719 kB / 0.667 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/1.015, allocations: 255.3 kB / 0.6672 GB, free: 171.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/1.016, allocations: 81.58 kB / 0.6673 GB, free: 171.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.34e-05/1.016, allocations: 11.44 kB / 0.6673 GB, free: 171.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/1.017, allocations: 1.72 MB / 0.669 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.017, allocations: 6.906 kB / 0.669 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003238/1.02, allocations: 3.039 MB / 0.672 GB, free: 169.8 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004273/1.024, allocations: 4.518 MB / 0.6764 GB, free: 169 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004861/1.025, allocations: 270.2 kB / 0.6766 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/1.025, allocations: 7.125 kB / 0.6766 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008251/1.026, allocations: 46.83 kB / 0.6767 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/1.026, allocations: 68.42 kB / 0.6768 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/1.026, allocations: 43.28 kB / 0.6768 GB, free: 168.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001923/1.028, allocations: 1.284 MB / 0.6781 GB, free: 168.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00373/1.032, allocations: 0.5998 MB / 0.6786 GB, free: 168.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 124 * Array equations: 4 * 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 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003959/1.032, allocations: 144 kB / 0.6788 GB, free: 168.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004063/1.036, allocations: 3.017 MB / 0.6817 GB, free: 167.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.036, allocations: 0 / 0.6817 GB, free: 167.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/1.038, allocations: 0.951 MB / 0.6827 GB, free: 167.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/1.039, allocations: 200.6 kB / 0.6828 GB, free: 167 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009491/1.048, allocations: 5.161 MB / 0.6879 GB, free: 165.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003598/1.052, allocations: 2.845 MB / 0.6907 GB, free: 164 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/1.052, allocations: 0 / 0.6907 GB, free: 164 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)