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.001795/0.001795, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.497/1.497, allocations: 221.4 MB / 234.6 MB, free: 14.4 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009458, allocations: 94.84 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04049/0.04049, allocations: 8.827 MB / 345.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.366e-05/3.368e-05, allocations: 4 kB / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 52.39 MB / 458.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.5204, allocations: 88.52 MB / 0.5338 GB, free: 13.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.5208, allocations: 72.53 kB / 0.5338 GB, free: 13.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1922/0.7129, allocations: 74.32 MB / 0.6064 GB, free: 8.926 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.713, allocations: 0 / 0.6064 GB, free: 8.926 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001581/0.7132, allocations: 60 kB / 0.6065 GB, free: 8.867 MB / 426.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.01594/0.7291, allocations: 3.921 MB / 0.6103 GB, free: 4.891 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.7292, allocations: 15.95 kB / 0.6103 GB, free: 4.875 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002527/0.7317, allocations: 0.6767 MB / 0.611 GB, free: 4.188 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009677/0.7414, allocations: 2.003 MB / 0.6129 GB, free: 2.176 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005603/0.7471, allocations: 1.934 MB / 0.6148 GB, free: 200 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003839/0.7475, allocations: 270.9 kB / 0.6151 GB, free: 15.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/0.7497, allocations: 343.8 kB / 0.6154 GB, free: 15.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02426/0.7739, allocations: 8.816 MB / 0.624 GB, free: 6.301 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002003/0.7742, allocations: 31.8 kB / 0.624 GB, free: 6.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001902/0.7761, allocations: 155.9 kB / 0.6242 GB, free: 6.117 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002283/0.7784, allocations: 1.037 MB / 0.6252 GB, free: 5.078 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01909/0.7975, allocations: 8.031 MB / 0.6331 GB, free: 13.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3546/1.152, allocations: 29.97 MB / 0.6623 GB, free: 95.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/1.163, allocations: 2.993 MB / 0.6652 GB, free: 95.17 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003176/1.166, allocations: 1.069 MB / 0.6663 GB, free: 95.15 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/1.181, allocations: 6.302 MB / 0.6724 GB, free: 91.52 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/1.181, allocations: 55.73 kB / 0.6725 GB, free: 91.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 8.125e-06/1.181, allocations: 1.406 kB / 0.6725 GB, free: 91.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.02998/1.211, allocations: 6.689 MB / 0.679 GB, free: 90.64 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/1.211, allocations: 77.89 kB / 0.6791 GB, free: 90.58 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006826/1.218, allocations: 2.658 MB / 0.6817 GB, free: 90.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000458/1.218, allocations: 59.42 kB / 0.6817 GB, free: 90.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002358/1.22, allocations: 2.417 MB / 0.6841 GB, free: 88.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/1.222, allocations: 0.8396 MB / 0.6849 GB, free: 88.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003902/1.222, allocations: 103.2 kB / 0.685 GB, free: 88.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003535/1.222, allocations: 0.5138 MB / 0.6855 GB, free: 88.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003241/1.226, allocations: 1.542 MB / 0.687 GB, free: 88.15 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005555/1.231, allocations: 4.132 MB / 0.6911 GB, free: 84.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005793/1.237, allocations: 2.578 MB / 0.6936 GB, free: 84.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-05/1.237, allocations: 27.25 kB / 0.6936 GB, free: 84.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=657) (initialization): time 0.01587/1.253, allocations: 6.292 MB / 0.6998 GB, free: 84.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/1.253, allocations: 43.62 kB / 0.6998 GB, free: 84.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002027/1.254, allocations: 89.34 kB / 0.6999 GB, free: 84.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/1.256, allocations: 0.703 MB / 0.7006 GB, free: 84.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005517/1.262, allocations: 1.047 MB / 0.7016 GB, free: 84.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01364/1.275, allocations: 12.35 MB / 0.7137 GB, free: 75.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004739/1.28, allocations: 249.3 kB / 0.7139 GB, free: 75.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/1.281, allocations: 287.8 kB / 0.7142 GB, free: 75.12 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (581): * Single equations (assignments): 572 * 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.001034/1.282, allocations: 475.3 kB / 0.7146 GB, free: 74.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006713/1.283, allocations: 279.9 kB / 0.7149 GB, free: 74.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004722/1.288, allocations: 3.043 MB / 0.7179 GB, free: 73.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001134/1.288, allocations: 35.8 kB / 0.7179 GB, free: 73.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/1.288, allocations: 7.281 kB / 0.7179 GB, free: 73.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/1.288, allocations: 14.02 kB / 0.7179 GB, free: 73.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/1.301, allocations: 8.176 MB / 0.7259 GB, free: 70.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/1.301, allocations: 3.594 kB / 0.7259 GB, free: 70.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.302, allocations: 298.8 kB / 0.7262 GB, free: 70.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/1.303, allocations: 0.4997 MB / 0.7267 GB, free: 70.03 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001622/1.303, allocations: 44.36 kB / 0.7267 GB, free: 70.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008917/1.312, allocations: 10.64 MB / 0.7371 GB, free: 61.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.312, allocations: 3.062 kB / 0.7371 GB, free: 61.72 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006832/1.319, allocations: 4.877 MB / 0.7419 GB, free: 59.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.321, allocations: 368 kB / 0.7422 GB, free: 59.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003815/1.321, allocations: 39.22 kB / 0.7423 GB, free: 59.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/1.322, allocations: 98.84 kB / 0.7424 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/1.323, allocations: 140.3 kB / 0.7425 GB, free: 59.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/1.323, allocations: 71.03 kB / 0.7426 GB, free: 59.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002797/1.326, allocations: 1.872 MB / 0.7444 GB, free: 58.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.326, allocations: 0 / 0.7444 GB, free: 58.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005886/1.332, allocations: 0.9068 MB / 0.7453 GB, free: 57.73 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 160 * 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.006439/1.338, allocations: 6.451 MB / 0.7516 GB, free: 51.65 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006462/1.345, allocations: 4.555 MB / 0.756 GB, free: 47.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.345, allocations: 4 kB / 0.756 GB, free: 47.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/1.347, allocations: 1.92 MB / 0.7579 GB, free: 45.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/1.35, allocations: 416.5 kB / 0.7583 GB, free: 45.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/1.365, allocations: 7.619 MB / 0.7657 GB, free: 38.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00272/1.368, allocations: 2.999 MB / 0.7687 GB, free: 36.17 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003516/1.372, allocations: 1.377 MB / 0.77 GB, free: 35.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002112/1.374, allocations: 1.614 MB / 0.7716 GB, free: 33.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.393e-06/1.374, allocations: 0 / 0.7716 GB, free: 33.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.374/1.748, allocations: 67.94 MB / 0.8379 GB, free: 114.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/1.748, allocations: 174.9 kB / 0.8381 GB, free: 114.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.993/5.742, allocations: 0 / 0.8381 GB, free: 114.4 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)