Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",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.0046/0.0046, allocations: 172.1 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.208/1.208, allocations: 223.2 MB / 239 MB, free: 1.781 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.0008705/0.0008707, allocations: 101.4 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03928/0.03928, allocations: 8.943 MB / 350.3 MB, free: 2.062 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002809/0.0002806, allocations: 7.031 kB / 413.2 MB, free: 88.53 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.07043, allocations: 52.39 MB / 465.6 MB, free: 41.6 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2486/0.3191, allocations: 88.58 MB / 0.5412 GB, free: 16.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.3193, allocations: 77.86 kB / 0.5413 GB, free: 16.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1591/0.4785, allocations: 74.26 MB / 0.6138 GB, free: 3.336 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4785, allocations: 3.938 kB / 0.6138 GB, free: 3.332 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001399/0.4787, allocations: 64 kB / 0.6138 GB, free: 3.27 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01389/0.4926, allocations: 4.029 MB / 0.6178 GB, free: 15.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4926, allocations: 12.03 kB / 0.6178 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002158/0.4948, allocations: 0.6788 MB / 0.6185 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008318/0.5031, allocations: 2.008 MB / 0.6204 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.5072, allocations: 1.935 MB / 0.6223 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000246/0.5075, allocations: 270.1 kB / 0.6226 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009801/0.5084, allocations: 351.2 kB / 0.6229 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.524, allocations: 8.897 MB / 0.6316 GB, free: 2.266 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.239e-05/0.5241, allocations: 23.81 kB / 0.6316 GB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005642/0.5247, allocations: 155.9 kB / 0.6318 GB, free: 2.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0014/0.5261, allocations: 1.037 MB / 0.6328 GB, free: 1.051 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.54, allocations: 8.163 MB / 0.6407 GB, free: 8.879 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03642/0.5765, allocations: 29.98 MB / 0.67 GB, free: 10.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007103/0.5836, allocations: 3.04 MB / 0.673 GB, free: 7.094 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009088/0.5927, allocations: 6.295 MB / 0.6791 GB, free: 136 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.5928, allocations: 59.81 kB / 0.6792 GB, free: 68 kB / 442.7 MB Notification: Performance of pre-optimization done (n=181): time 4.208e-06/0.5928, allocations: 0 / 0.6792 GB, free: 68 kB / 442.7 MB Notification: Performance of matching and sorting (n=235): time 0.02017/0.613, allocations: 8.472 MB / 0.6875 GB, free: 7.469 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/0.6131, allocations: 77.41 kB / 0.6875 GB, free: 7.379 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004353/0.6174, allocations: 2.696 MB / 0.6902 GB, free: 4.668 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.6176, allocations: 53.7 kB / 0.6902 GB, free: 4.609 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.6194, allocations: 2.421 MB / 0.6926 GB, free: 2.156 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007935/0.6202, allocations: 0.8477 MB / 0.6934 GB, free: 1.297 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/0.6205, allocations: 104 kB / 0.6935 GB, free: 1.195 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003617/0.6208, allocations: 0.513 MB / 0.694 GB, free: 0.6758 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1785/0.7993, allocations: 1.592 MB / 0.6956 GB, free: 109.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003261/0.8026, allocations: 4.197 MB / 0.6997 GB, free: 106.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002877/0.8055, allocations: 2.594 MB / 0.7022 GB, free: 106.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-05/0.8055, allocations: 26.72 kB / 0.7022 GB, free: 106.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.008/0.8135, allocations: 6.395 MB / 0.7085 GB, free: 105.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.074e-05/0.8136, allocations: 43.28 kB / 0.7085 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-05/0.8137, allocations: 90.06 kB / 0.7086 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/0.8154, allocations: 0.7052 MB / 0.7093 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.8183, allocations: 1.052 MB / 0.7103 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.8295, allocations: 12.64 MB / 0.7227 GB, free: 98.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003393/0.8329, allocations: 257.3 kB / 0.7229 GB, free: 98.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004628/0.8334, allocations: 288.8 kB / 0.7232 GB, free: 98.85 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.002785/0.8362, allocations: 1.782 MB / 0.7249 GB, free: 98.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003713/0.8366, allocations: 280.8 kB / 0.7252 GB, free: 98.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/0.8412, allocations: 3.108 MB / 0.7282 GB, free: 98.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/0.8413, allocations: 40.19 kB / 0.7283 GB, free: 98.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.8413, allocations: 6.062 kB / 0.7283 GB, free: 98.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.8413, allocations: 7.453 kB / 0.7283 GB, free: 98.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.8535, allocations: 8.245 MB / 0.7363 GB, free: 96.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.8536, allocations: 3.438 kB / 0.7363 GB, free: 96.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.8546, allocations: 299.1 kB / 0.7366 GB, free: 96.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/0.8557, allocations: 0.5061 MB / 0.7371 GB, free: 96.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.8558, allocations: 51.97 kB / 0.7372 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007879/0.8637, allocations: 10.88 MB / 0.7478 GB, free: 88.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.8638, allocations: 7.906 kB / 0.7478 GB, free: 88.45 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005578/0.8693, allocations: 4.97 MB / 0.7527 GB, free: 86.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007378/0.8701, allocations: 368.6 kB / 0.753 GB, free: 85.79 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002704/0.8704, allocations: 42.83 kB / 0.753 GB, free: 85.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009481/0.8713, allocations: 89.27 kB / 0.7531 GB, free: 85.74 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.8716, allocations: 153.1 kB / 0.7533 GB, free: 85.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.8717, allocations: 64.39 kB / 0.7533 GB, free: 85.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002409/0.8741, allocations: 1.903 MB / 0.7552 GB, free: 85 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8741, allocations: 0 / 0.7552 GB, free: 85 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003628/0.8777, allocations: 0.918 MB / 0.7561 GB, free: 84.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * 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 (171): * Single equations (assignments): 162 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.005754/0.8835, allocations: 6.534 MB / 0.7625 GB, free: 81.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005908/0.8894, allocations: 4.655 MB / 0.767 GB, free: 79.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.8895, allocations: 3.875 kB / 0.767 GB, free: 79.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.8914, allocations: 1.968 MB / 0.7689 GB, free: 78.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.8931, allocations: 415.8 kB / 0.7693 GB, free: 77.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05101/0.9442, allocations: 88.51 MB / 0.8558 GB, free: 5.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003545/0.9477, allocations: 3.008 MB / 0.8587 GB, free: 3.152 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003344/0.9511, allocations: 1.37 MB / 0.8601 GB, free: 2.285 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002054/0.9532, allocations: 1.619 MB / 0.8616 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of SimCode: time 6.82e-07/0.9532, allocations: 0 / 0.8616 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2934/1.247, allocations: 68.39 MB / 0.9284 GB, free: 101 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/1.247, allocations: 202.3 kB / 0.9286 GB, free: 100.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.41/4.657, allocations: 0 / 0.9286 GB, free: 100.7 MB / 474.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)