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.006196/0.006196, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001174/0.001174, allocations: 198.3 kB / 16.68 MB, free: 5.957 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.276/1.276, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04446/0.04446, allocations: 9.11 MB / 299.6 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 59.91 kB / 414.1 MB, free: 21.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07706/0.07833, allocations: 51.44 MB / 465.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009073/0.08744, allocations: 8.64 MB / 474.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005093/0.09257, allocations: 2.608 MB / 476.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.09379, allocations: 35.94 kB / 476.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.0949, allocations: 361.5 kB / 477.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003459/0.09838, allocations: 1.397 MB / 478.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.09898, allocations: 151.7 kB / 478.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003364/0.1024, allocations: 2.521 MB / 481.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00142/0.1038, allocations: 0.9464 MB / 482.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/0.1054, allocations: 0.8988 MB / 483.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002002/0.1074, allocations: 1.319 MB / 484.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006578/0.1081, allocations: 232 kB / 484.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001724/0.1098, allocations: 0.8387 MB / 485.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00146/0.1113, allocations: 1.212 MB / 486.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.1136, allocations: 1.569 MB / 488.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005838/0.1195, allocations: 4.995 MB / 493.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.1195, allocations: 0 / 493.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1195, allocations: 0 / 493.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001832/0.1197, allocations: 0 / 493.3 MB, free: 6.336 MB / 366.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.01035/0.1301, allocations: 3.873 MB / 497.2 MB, free: 2.398 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.1301, allocations: 8.031 kB / 497.2 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001146/0.1313, allocations: 0.5388 MB / 497.7 MB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00667/0.138, allocations: 1.775 MB / 499.5 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/0.1412, allocations: 1.374 MB / 0.4891 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.1414, allocations: 152 kB / 0.4893 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001002/0.1425, allocations: 199.8 kB / 0.4894 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.1572, allocations: 7.959 MB / 0.4972 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.1574, allocations: 27.72 kB / 0.4972 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006941/0.1581, allocations: 95.88 kB / 0.4973 GB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002982/0.1611, allocations: 1.848 MB / 0.4991 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1924/0.3535, allocations: 7.153 MB / 0.5061 GB, free: 38.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03293/0.3865, allocations: 24.06 MB / 0.5296 GB, free: 23.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004718/0.3913, allocations: 2.371 MB / 0.5319 GB, free: 21.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.3923, allocations: 0.8243 MB / 0.5327 GB, free: 21.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005945/0.3983, allocations: 4.751 MB / 0.5374 GB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.3984, allocations: 39.41 kB / 0.5374 GB, free: 17.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.827e-06/0.3984, allocations: 6.531 kB / 0.5374 GB, free: 17.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01241/0.4108, allocations: 7.047 MB / 0.5443 GB, free: 13.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.4109, allocations: 68.66 kB / 0.5444 GB, free: 12.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/0.4136, allocations: 2.625 MB / 0.5469 GB, free: 10.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.747e-05/0.4137, allocations: 45.7 kB / 0.547 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007734/0.4145, allocations: 2.08 MB / 0.549 GB, free: 8.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.4148, allocations: 0.57 MB / 0.5496 GB, free: 7.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007696/0.4156, allocations: 0.7857 MB / 0.5503 GB, free: 6.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.048e-05/0.4156, allocations: 305.1 kB / 0.5506 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.4173, allocations: 1.304 MB / 0.5519 GB, free: 5.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00239/0.4197, allocations: 3.437 MB / 0.5553 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/0.4251, allocations: 5.086 MB / 0.5602 GB, free: 10.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.003e-05/0.4252, allocations: 24 kB / 0.5602 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007793/0.433, allocations: 4.798 MB / 0.5649 GB, free: 5.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/0.4331, allocations: 40.25 kB / 0.565 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.4332, allocations: 80.06 kB / 0.565 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004819/0.4337, allocations: 204.8 kB / 0.5652 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.4366, allocations: 0.8968 MB / 0.5661 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/0.4391, allocations: 2.341 MB / 0.5684 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002817/0.4419, allocations: 203.9 kB / 0.5686 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005439/0.4425, allocations: 232 kB / 0.5688 GB, free: 1.602 MB / 398.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.00286/0.4454, allocations: 1.574 MB / 0.5704 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004918/0.4459, allocations: 225.1 kB / 0.5706 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00362/0.4495, allocations: 1.943 MB / 0.5725 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001212/0.4496, allocations: 27.98 kB / 0.5725 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4497, allocations: 0 / 0.5725 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.4497, allocations: 7.984 kB / 0.5725 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.4601, allocations: 5.571 MB / 0.5779 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/0.4601, allocations: 0 / 0.5779 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009622/0.4611, allocations: 239.7 kB / 0.5782 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003221/0.4614, allocations: 108.5 kB / 0.5783 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.7e-05/0.4615, allocations: 24 kB / 0.5783 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/0.4634, allocations: 2.065 MB / 0.5803 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4634, allocations: 3.938 kB / 0.5803 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004456/0.4679, allocations: 3.029 MB / 0.5833 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006857/0.4686, allocations: 298.3 kB / 0.5836 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004267/0.469, allocations: 20 kB / 0.5836 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009807/0.47, allocations: 79.81 kB / 0.5837 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.4702, allocations: 84.77 kB / 0.5837 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.885e-05/0.4703, allocations: 47.98 kB / 0.5838 GB, free: 1.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002827/0.4731, allocations: 1.691 MB / 0.5854 GB, free: 252 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4731, allocations: 480 / 0.5854 GB, free: 252 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002981/0.4761, allocations: 0.6692 MB / 0.5861 GB, free: 15.58 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.004938/0.4811, allocations: 3.665 MB / 0.5897 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005092/0.4862, allocations: 3.148 MB / 0.5927 GB, free: 8.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.4862, allocations: 4.062 kB / 0.5927 GB, free: 8.727 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.4877, allocations: 0.9806 MB / 0.5937 GB, free: 7.734 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.49, allocations: 399.6 kB / 0.5941 GB, free: 7.355 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04214/0.5321, allocations: 27.32 MB / 0.6208 GB, free: 9.348 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003355/0.5355, allocations: 2.57 MB / 0.6233 GB, free: 6.746 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002912/0.5385, allocations: 1.204 MB / 0.6245 GB, free: 5.535 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001956/0.5404, allocations: 1.284 MB / 0.6257 GB, free: 4.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5405, allocations: 0 / 0.6257 GB, free: 4.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09698/0.6375, allocations: 46.84 MB / 0.6714 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.04/16.68, allocations: 10.73 kB / 0.6715 GB, free: 5.621 MB / 0.4981 GB (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)