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.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.0007306/0.0007306, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004327/0.004327, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1569/0.1569, allocations: 9.094 MB / 300.5 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002845/0.0002845, allocations: 8 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.08587, allocations: 52.43 MB / 416.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.1759/0.2618, allocations: 26.51 MB / 442.7 MB, free: 27.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009452/0.2713, allocations: 6.068 MB / 448.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002639/0.2739, allocations: 98.94 kB / 448.9 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006912/0.2746, allocations: 312 kB / 449.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00236/0.277, allocations: 1.302 MB / 450.5 MB, free: 23.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.2773, allocations: 134 kB / 450.6 MB, free: 23.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002161/0.2795, allocations: 3.496 MB / 454.1 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007295/0.2802, allocations: 0.8278 MB / 455 MB, free: 22.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005804/0.2808, allocations: 0.7596 MB / 455.7 MB, free: 22.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001078/0.2819, allocations: 1.302 MB / 457 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.2821, allocations: 125.8 kB / 457.1 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.2831, allocations: 0.7754 MB / 457.9 MB, free: 21.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006209/0.2838, allocations: 1.139 MB / 459.1 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007745/0.2845, allocations: 1.488 MB / 460.6 MB, free: 19.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00267/0.2872, allocations: 4.499 MB / 465.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2872, allocations: 1.219 kB / 465.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2872, allocations: 0 / 465.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.685e-05/0.2873, allocations: 7.188 kB / 465.1 MB, free: 18.6 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.005877/0.2932, allocations: 3.256 MB / 468.3 MB, free: 16.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2932, allocations: 9.469 kB / 468.3 MB, free: 16.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004922/0.2937, allocations: 0.5345 MB / 468.9 MB, free: 16.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006075/0.2998, allocations: 1.819 MB / 470.7 MB, free: 16.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.3016, allocations: 1.365 MB / 472 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.592e-05/0.3017, allocations: 148.9 kB / 472.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003648/0.3021, allocations: 198.6 kB / 472.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.3122, allocations: 7.963 MB / 480.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-05/0.3123, allocations: 30.23 kB / 480.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/0.3126, allocations: 92.92 kB / 480.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002836/0.3154, allocations: 1.843 MB / 482.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01175/0.3272, allocations: 7.176 MB / 489.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02618/0.3534, allocations: 24.17 MB / 0.5016 GB, free: 1.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004642/0.3581, allocations: 2.369 MB / 0.5039 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.3593, allocations: 0.8301 MB / 0.5047 GB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006008/0.3653, allocations: 4.749 MB / 0.5094 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.3654, allocations: 43.56 kB / 0.5094 GB, free: 8.754 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 2.956e-06/0.3654, allocations: 0 / 0.5094 GB, free: 8.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01352/0.3789, allocations: 7.144 MB / 0.5164 GB, free: 1.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.379, allocations: 64.72 kB / 0.5165 GB, free: 1.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003189/0.3822, allocations: 2.625 MB / 0.519 GB, free: 14.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.3823, allocations: 49.69 kB / 0.5191 GB, free: 14.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.3834, allocations: 2.078 MB / 0.5211 GB, free: 12.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/0.3838, allocations: 0.5705 MB / 0.5217 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003536/0.3842, allocations: 326.2 kB / 0.522 GB, free: 11.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.582e-05/0.3843, allocations: 309.1 kB / 0.5223 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.3863, allocations: 1.315 MB / 0.5235 GB, free: 10.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003107/0.3894, allocations: 3.445 MB / 0.5269 GB, free: 5.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005391/0.3948, allocations: 5.111 MB / 0.5319 GB, free: 15.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.047e-05/0.3948, allocations: 24 kB / 0.5319 GB, free: 15.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.006943/0.4018, allocations: 4.822 MB / 0.5366 GB, free: 10.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.4018, allocations: 36 kB / 0.5367 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.659e-05/0.4019, allocations: 76.84 kB / 0.5367 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000388/0.4023, allocations: 200.8 kB / 0.5369 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/0.4048, allocations: 0.9162 MB / 0.5378 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.4066, allocations: 2.134 MB / 0.5399 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.4087, allocations: 215.9 kB / 0.5401 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002603/0.409, allocations: 235.9 kB / 0.5403 GB, free: 6.656 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001932/0.4109, allocations: 1.562 MB / 0.5419 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002649/0.4112, allocations: 225.2 kB / 0.5421 GB, free: 4.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.4142, allocations: 1.966 MB / 0.544 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.666e-05/0.4143, allocations: 28.45 kB / 0.544 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4143, allocations: 0 / 0.544 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4143, allocations: 7.984 kB / 0.544 GB, free: 2.844 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00769/0.422, allocations: 5.647 MB / 0.5496 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.422, allocations: 0 / 0.5496 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008936/0.4229, allocations: 247.6 kB / 0.5498 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002785/0.4232, allocations: 101 kB / 0.5499 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.444e-05/0.4233, allocations: 24 kB / 0.5499 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.4247, allocations: 1.892 MB / 0.5518 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4248, allocations: 0 / 0.5518 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004035/0.4288, allocations: 3.059 MB / 0.5547 GB, free: 7.562 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003924/0.4292, allocations: 310.2 kB / 0.555 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.4294, allocations: 27.98 kB / 0.5551 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007723/0.4302, allocations: 79.97 kB / 0.5551 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.4304, allocations: 84.77 kB / 0.5552 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.707e-05/0.4305, allocations: 48 kB / 0.5553 GB, free: 7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002078/0.4325, allocations: 1.687 MB / 0.5569 GB, free: 5.297 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4325, allocations: 4 kB / 0.5569 GB, free: 5.293 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002307/0.4349, allocations: 0.664 MB / 0.5576 GB, free: 4.629 MB / 430.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 119 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004406/0.4393, allocations: 3.699 MB / 0.5612 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004368/0.4437, allocations: 3.151 MB / 0.5643 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4437, allocations: 0 / 0.5643 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.445, allocations: 0.9976 MB / 0.5652 GB, free: 12.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.4469, allocations: 359.8 kB / 0.5656 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2036/0.6505, allocations: 31.33 MB / 0.5962 GB, free: 93.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001941/0.6525, allocations: 2.563 MB / 0.5987 GB, free: 92.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002471/0.655, allocations: 1.204 MB / 0.5998 GB, free: 92.13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00123/0.6562, allocations: 1.292 MB / 0.6011 GB, free: 91.08 MB / 446.1 MB Notification: Performance of SimCode: time 1.773e-06/0.6562, allocations: 0 / 0.6011 GB, free: 91.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05889/0.7151, allocations: 45.63 MB / 0.6457 GB, free: 67.46 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.7153, allocations: 211 kB / 0.6459 GB, free: 67.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/3.309, allocations: 0 / 0.6459 GB, free: 67.2 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/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)