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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1696/0.1696, allocations: 9.106 MB / 300.1 MB, free: 2.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003341, allocations: 15.98 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1239, allocations: 52.42 MB / 415.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.2651/0.389, allocations: 23.31 MB / 438.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01325/0.4023, allocations: 6.067 MB / 444.9 MB, free: 27.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005214/0.4076, allocations: 99.91 kB / 445 MB, free: 27.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003993/0.4116, allocations: 1.127 MB / 446.1 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01256/0.4242, allocations: 3.465 MB / 449.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.4258, allocations: 136 kB / 449.7 MB, free: 24.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002839/0.4286, allocations: 1.417 MB / 451.1 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.43, allocations: 0.8156 MB / 452 MB, free: 23.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.4312, allocations: 0.6678 MB / 452.6 MB, free: 23.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.4326, allocations: 0.9772 MB / 453.6 MB, free: 23.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004115/0.433, allocations: 127.7 kB / 453.7 MB, free: 23.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001461/0.4345, allocations: 0.6626 MB / 454.4 MB, free: 23.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009399/0.4354, allocations: 1.027 MB / 455.4 MB, free: 22.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006104/0.436, allocations: 0.6309 MB / 456 MB, free: 22.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004361/0.4404, allocations: 3.672 MB / 459.7 MB, free: 21.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4404, allocations: 0 / 459.7 MB, free: 21.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.418e-06/0.4404, allocations: 0 / 459.7 MB, free: 21.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000133/0.4406, allocations: 3.938 kB / 459.7 MB, free: 21.56 MB / 350.1 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.009168/0.4498, allocations: 3.343 MB / 463.1 MB, free: 19.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/0.4498, allocations: 10.78 kB / 463.1 MB, free: 19.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001706/0.4516, allocations: 0.5356 MB / 463.6 MB, free: 19.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007708/0.4593, allocations: 2.175 MB / 465.8 MB, free: 19.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003587/0.4629, allocations: 1.333 MB / 467.1 MB, free: 18.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.463, allocations: 151 kB / 467.3 MB, free: 18.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004718/0.4635, allocations: 203 kB / 467.5 MB, free: 18.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.478, allocations: 7.966 MB / 475.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.698e-05/0.4781, allocations: 27.5 kB / 475.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003116/0.4784, allocations: 97.27 kB / 475.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003406/0.4818, allocations: 1.847 MB / 477.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02153/0.5034, allocations: 7.176 MB / 484.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03767/0.5411, allocations: 24.13 MB / 0.4968 GB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005528/0.5467, allocations: 2.365 MB / 0.4991 GB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001357/0.5481, allocations: 1.384 MB / 0.5004 GB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.5481, allocations: 43.67 kB / 0.5005 GB, free: 1.641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 6.382e-06/0.5481, allocations: 7.938 kB / 0.5005 GB, free: 1.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=176): time 0.01875/0.5669, allocations: 8.244 MB / 0.5085 GB, free: 9.238 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.567, allocations: 64.72 kB / 0.5086 GB, free: 9.164 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003993/0.571, allocations: 2.532 MB / 0.5111 GB, free: 6.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/0.5712, allocations: 53.69 kB / 0.5111 GB, free: 6.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/0.5728, allocations: 2.016 MB / 0.5131 GB, free: 4.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006977/0.5735, allocations: 0.6398 MB / 0.5137 GB, free: 3.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.5737, allocations: 76 kB / 0.5138 GB, free: 3.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002783/0.574, allocations: 482.6 kB / 0.5143 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002563/0.5765, allocations: 1.331 MB / 0.5156 GB, free: 1.949 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004343/0.5809, allocations: 3.445 MB / 0.5189 GB, free: 13.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004182/0.5852, allocations: 2.156 MB / 0.521 GB, free: 11.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.74e-05/0.5852, allocations: 24 kB / 0.521 GB, free: 11.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=518) (initialization): time 0.01004/0.5953, allocations: 4.859 MB / 0.5258 GB, free: 6.406 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.5954, allocations: 36 kB / 0.5258 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.778e-05/0.5955, allocations: 77.25 kB / 0.5259 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000458/0.596, allocations: 221.2 kB / 0.5261 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/0.5991, allocations: 0.9202 MB / 0.527 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.6013, allocations: 2.153 MB / 0.5291 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/0.6046, allocations: 216 kB / 0.5293 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005185/0.6052, allocations: 228.3 kB / 0.5295 GB, free: 2.422 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 337 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (484): * Single equations (assignments): 479 * 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.002872/0.6081, allocations: 1.558 MB / 0.5311 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.6085, allocations: 225.1 kB / 0.5313 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003821/0.6123, allocations: 2.352 MB / 0.5336 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/0.6125, allocations: 27.98 kB / 0.5336 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.6125, allocations: 8 kB / 0.5336 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.6125, allocations: 7.984 kB / 0.5336 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.6239, allocations: 6.23 MB / 0.5397 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6239, allocations: 4 kB / 0.5397 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.625, allocations: 280.2 kB / 0.54 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003102/0.6254, allocations: 100.8 kB / 0.5401 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.111e-05/0.6255, allocations: 35.98 kB / 0.5401 GB, free: 7.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/0.6272, allocations: 1.9 MB / 0.542 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.6272, allocations: 7.938 kB / 0.542 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005152/0.6324, allocations: 3.762 MB / 0.5456 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008207/0.6332, allocations: 318.1 kB / 0.5459 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.6335, allocations: 36.05 kB / 0.546 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009013/0.6344, allocations: 88.09 kB / 0.5461 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.6346, allocations: 101.1 kB / 0.5461 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.706e-05/0.6347, allocations: 55.94 kB / 0.5462 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002668/0.6374, allocations: 1.64 MB / 0.5478 GB, free: 15.08 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6374, allocations: 0 / 0.5478 GB, free: 15.08 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003137/0.6406, allocations: 0.668 MB / 0.5485 GB, free: 14.41 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 138 * 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.006413/0.647, allocations: 5.608 MB / 0.5539 GB, free: 8.641 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006186/0.6532, allocations: 3.245 MB / 0.5571 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/0.6532, allocations: 4 kB / 0.5571 GB, free: 5.406 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001753/0.655, allocations: 1.092 MB / 0.5582 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.657, allocations: 358.5 kB / 0.5585 GB, free: 3.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2613/0.9183, allocations: 71.61 MB / 0.6284 GB, free: 75.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002966/0.9213, allocations: 2.637 MB / 0.631 GB, free: 74.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002851/0.9242, allocations: 1.264 MB / 0.6323 GB, free: 74.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/0.9258, allocations: 1.306 MB / 0.6335 GB, free: 74.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.9258, allocations: 0 / 0.6335 GB, free: 74.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09365/1.019, allocations: 51.68 MB / 0.684 GB, free: 49.88 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.02, allocations: 199.2 kB / 0.6842 GB, free: 49.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/4.07, allocations: 8 kB / 0.6842 GB, free: 49.63 MB / 446.1 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) Environment - environmentSimulation: