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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 172.5 kB / 7.647 MB, free: 1.422 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.458/1.458, allocations: 221.5 MB / 229.6 MB, free: 7.602 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.0008921/0.000892, allocations: 89.25 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03865/0.03865, allocations: 8.832 MB / 340.1 MB, free: 6.414 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.686e-05/1.689e-05, allocations: 1.406 kB / 398.8 MB, free: 47.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09338/0.09341, allocations: 52.39 MB / 451.2 MB, free: 4.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4168/0.5103, allocations: 88.36 MB / 0.5269 GB, free: 28.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5107, allocations: 75.52 kB / 0.527 GB, free: 28.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.142/0.6526, allocations: 60.97 MB / 0.5865 GB, free: 11.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6527, allocations: 0 / 0.5865 GB, free: 11.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.846e-05/0.6528, allocations: 50.62 kB / 0.5865 GB, free: 11.98 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01017/0.6629, allocations: 3.082 MB / 0.5895 GB, free: 10.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.663, allocations: 13.58 kB / 0.5896 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008537/0.6715, allocations: 1.932 MB / 0.5914 GB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003491/0.6751, allocations: 1.719 MB / 0.5931 GB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.637e-05/0.6752, allocations: 92 kB / 0.5932 GB, free: 8.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006904/0.6759, allocations: 174.8 kB / 0.5934 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007195/0.6831, allocations: 5.231 MB / 0.5985 GB, free: 4.863 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01244/0.6956, allocations: 6.93 MB / 0.6053 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.733e-05/0.6957, allocations: 19.78 kB / 0.6053 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/0.6961, allocations: 16 kB / 0.6053 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001355/0.6975, allocations: 0.8687 MB / 0.6061 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03873/0.7362, allocations: 23.3 MB / 0.6289 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004238/0.7405, allocations: 2.221 MB / 0.6311 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.742, allocations: 0.7319 MB / 0.6318 GB, free: 3.082 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009531/0.7516, allocations: 4.285 MB / 0.636 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/0.7517, allocations: 47.88 kB / 0.636 GB, free: 14.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 7.644e-06/0.7517, allocations: 4 kB / 0.636 GB, free: 14.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.01608/0.7678, allocations: 5.635 MB / 0.6415 GB, free: 8.695 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.7679, allocations: 68.66 kB / 0.6416 GB, free: 8.613 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004121/0.772, allocations: 1.875 MB / 0.6434 GB, free: 6.742 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.7722, allocations: 25.7 kB / 0.6434 GB, free: 6.711 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/0.7741, allocations: 2.138 MB / 0.6455 GB, free: 4.539 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000724/0.7748, allocations: 0.5588 MB / 0.6461 GB, free: 3.973 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.7751, allocations: 0 / 0.6461 GB, free: 3.973 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004652/0.7755, allocations: 0.5154 MB / 0.6466 GB, free: 3.445 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002773/0.7783, allocations: 1.207 MB / 0.6478 GB, free: 2.234 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004752/0.7831, allocations: 3.444 MB / 0.6511 GB, free: 13.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004378/0.7875, allocations: 2.084 MB / 0.6532 GB, free: 11.58 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-05/0.7876, allocations: 20 kB / 0.6532 GB, free: 11.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01138/0.799, allocations: 4.311 MB / 0.6574 GB, free: 7.246 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.7991, allocations: 40 kB / 0.6574 GB, free: 7.207 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001539/0.7993, allocations: 80 kB / 0.6575 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006408/0.8, allocations: 201.1 kB / 0.6577 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004939/0.8049, allocations: 0.9555 MB / 0.6586 GB, free: 5.973 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.8076, allocations: 2.101 MB / 0.6607 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/0.8114, allocations: 135.8 kB / 0.6608 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009403/0.8123, allocations: 252 kB / 0.661 GB, free: 3.355 MB / 426.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 (500): * Single equations (assignments): 495 * 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.001093/0.8134, allocations: 294.9 kB / 0.6613 GB, free: 3.059 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003207/0.8167, allocations: 1.565 MB / 0.6628 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004718/0.8172, allocations: 189.6 kB / 0.663 GB, free: 1.297 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003333/0.8205, allocations: 1.706 MB / 0.6647 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001204/0.8206, allocations: 31.89 kB / 0.6647 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.8207, allocations: 0 / 0.6647 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.8207, allocations: 7.969 kB / 0.6647 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.8324, allocations: 4.624 MB / 0.6692 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.8324, allocations: 192 / 0.6692 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.8338, allocations: 243.7 kB / 0.6695 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002574/0.8341, allocations: 92.67 kB / 0.6696 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.8342, allocations: 11.98 kB / 0.6696 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.836, allocations: 1.824 MB / 0.6714 GB, free: 8.492 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.8361, allocations: 3.938 kB / 0.6714 GB, free: 8.488 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004486/0.8406, allocations: 2.831 MB / 0.6741 GB, free: 5.586 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008428/0.8414, allocations: 274.6 kB / 0.6744 GB, free: 5.297 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004812/0.8419, allocations: 4 kB / 0.6744 GB, free: 5.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.8433, allocations: 63.86 kB / 0.6745 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/0.8436, allocations: 77.14 kB / 0.6745 GB, free: 5.152 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.8437, allocations: 47.98 kB / 0.6746 GB, free: 5.105 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003434/0.8471, allocations: 1.249 MB / 0.6758 GB, free: 3.867 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8472, allocations: 0 / 0.6758 GB, free: 3.867 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004771/0.8519, allocations: 0.5781 MB / 0.6764 GB, free: 3.289 MB / 442.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 (123): * Single equations (assignments): 118 * 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.005443/0.8574, allocations: 3.854 MB / 0.6801 GB, free: 15.36 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005261/0.8627, allocations: 2.877 MB / 0.6829 GB, free: 12.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.8628, allocations: 0 / 0.6829 GB, free: 12.49 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.8641, allocations: 0.8909 MB / 0.6838 GB, free: 11.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.8659, allocations: 215 kB / 0.684 GB, free: 11.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01791/0.8839, allocations: 5.947 MB / 0.6898 GB, free: 5.359 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00496/0.8889, allocations: 2.63 MB / 0.6924 GB, free: 2.695 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004698/0.8936, allocations: 1.202 MB / 0.6936 GB, free: 1.488 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002987/0.8967, allocations: 1.292 MB / 0.6948 GB, free: 204 kB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/0.8967, allocations: 0 / 0.6948 GB, free: 204 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3479/1.245, allocations: 44.7 MB / 0.7385 GB, free: 118.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001235/1.245, allocations: 137.7 kB / 0.7386 GB, free: 118.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.224/4.469, allocations: 0 / 0.7386 GB, free: 118.6 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)