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.001428/0.001428, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 221.5 MB / 229.6 MB, free: 7.508 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.0008287/0.0008284, allocations: 91.22 kB / 280.5 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0478/0.0478, allocations: 8.832 MB / 340.1 MB, free: 6.387 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.587e-05, allocations: 2.812 kB / 398.8 MB, free: 47.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 52.39 MB / 451.2 MB, free: 4.426 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5624, allocations: 87.85 MB / 0.5264 GB, free: 27.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.5627, allocations: 73.69 kB / 0.5265 GB, free: 27.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1675/0.7302, allocations: 72.05 MB / 0.5968 GB, free: 5.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.7303, allocations: 0 / 0.5968 GB, free: 5.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001322/0.7304, allocations: 60 kB / 0.5969 GB, free: 5.848 MB / 362.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.0141/0.7445, allocations: 3.923 MB / 0.6007 GB, free: 2.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.7446, allocations: 12.02 kB / 0.6007 GB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009365/0.754, allocations: 2.007 MB / 0.6027 GB, free: 156 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00489/0.7589, allocations: 1.932 MB / 0.6046 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.7591, allocations: 112 kB / 0.6047 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.7608, allocations: 200 kB / 0.6049 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01114/0.7719, allocations: 6.03 MB / 0.6107 GB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.7921, allocations: 8.097 MB / 0.6187 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001464/0.7923, allocations: 31.66 kB / 0.6187 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006542/0.7929, allocations: 15.94 kB / 0.6187 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001601/0.7945, allocations: 1.033 MB / 0.6197 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04744/0.842, allocations: 29.31 MB / 0.6483 GB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004273/0.8463, allocations: 2.877 MB / 0.6511 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.8478, allocations: 0.9852 MB / 0.6521 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008179/0.856, allocations: 5.431 MB / 0.6574 GB, free: 7.809 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/0.8561, allocations: 47.88 kB / 0.6575 GB, free: 7.754 MB / 426.7 MB Notification: Performance of pre-optimization done (n=173): time 4.659e-06/0.8561, allocations: 3.938 kB / 0.6575 GB, free: 7.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=227): time 0.01344/0.8695, allocations: 5.671 MB / 0.663 GB, free: 2.062 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.8696, allocations: 73.41 kB / 0.6631 GB, free: 1.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003854/0.8735, allocations: 2.184 MB / 0.6652 GB, free: 15.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002962/0.8738, allocations: 25.7 kB / 0.6652 GB, free: 15.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001529/0.8754, allocations: 2.495 MB / 0.6677 GB, free: 13.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000917/0.8763, allocations: 0.8052 MB / 0.6684 GB, free: 12.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.8765, allocations: 0 / 0.6684 GB, free: 12.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004085/0.8769, allocations: 0.5766 MB / 0.669 GB, free: 11.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/0.8793, allocations: 1.517 MB / 0.6705 GB, free: 10.28 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005526/0.8848, allocations: 4.23 MB / 0.6746 GB, free: 4.691 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004522/0.8894, allocations: 2.58 MB / 0.6771 GB, free: 2.113 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.754e-05/0.8895, allocations: 24 kB / 0.6772 GB, free: 2.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.01106/0.9006, allocations: 5.846 MB / 0.6829 GB, free: 12.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.424e-05/0.9007, allocations: 48 kB / 0.6829 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.38e-05/0.9008, allocations: 96 kB / 0.683 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.9025, allocations: 0.6976 MB / 0.6837 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003564/0.906, allocations: 1.084 MB / 0.6847 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2766/1.183, allocations: 11.94 MB / 0.6964 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004086/1.187, allocations: 158.2 kB / 0.6966 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.188, allocations: 303.7 kB / 0.6969 GB, free: 113 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation2.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 437 * 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 (605): * Single equations (assignments): 596 * 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.001087/1.189, allocations: 364.5 kB / 0.6972 GB, free: 112.9 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005287/1.194, allocations: 2.561 MB / 0.6997 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/1.195, allocations: 243 kB / 0.6999 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005477/1.201, allocations: 2.776 MB / 0.7026 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001334/1.201, allocations: 34.61 kB / 0.7027 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/1.201, allocations: 13.42 kB / 0.7027 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.799e-05/1.201, allocations: 10.23 kB / 0.7027 GB, free: 112.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/1.213, allocations: 6.875 MB / 0.7094 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/1.213, allocations: 10.16 kB / 0.7094 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/1.214, allocations: 283.5 kB / 0.7097 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/1.215, allocations: 0.4888 MB / 0.7102 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/1.216, allocations: 11 kB / 0.7102 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008691/1.224, allocations: 10.25 MB / 0.7202 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/1.224, allocations: 3.5 kB / 0.7202 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00565/1.23, allocations: 4.417 MB / 0.7245 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007791/1.231, allocations: 316.8 kB / 0.7248 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/1.231, allocations: 10.42 kB / 0.7248 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009891/1.232, allocations: 63.64 kB / 0.7249 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/1.232, allocations: 133.9 kB / 0.725 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/1.233, allocations: 60.83 kB / 0.7251 GB, free: 104.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002419/1.235, allocations: 1.451 MB / 0.7265 GB, free: 104.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.72e-07/1.235, allocations: 0 / 0.7265 GB, free: 104.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005226/1.24, allocations: 0.7765 MB / 0.7272 GB, free: 104.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (163): * Single equations (assignments): 154 * 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.006074/1.246, allocations: 5.614 MB / 0.7327 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006256/1.253, allocations: 4.334 MB / 0.737 GB, free: 101.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.253, allocations: 0 / 0.737 GB, free: 101.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/1.255, allocations: 1.814 MB / 0.7387 GB, free: 101 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/1.256, allocations: 245.2 kB / 0.739 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/1.272, allocations: 7.271 MB / 0.7461 GB, free: 98.26 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002999/1.275, allocations: 3 MB / 0.749 GB, free: 97.04 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003533/1.279, allocations: 1.359 MB / 0.7503 GB, free: 97 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002313/1.281, allocations: 1.608 MB / 0.7519 GB, free: 95.69 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/1.281, allocations: 7.656 kB / 0.7519 GB, free: 95.69 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/1.383, allocations: 59.65 MB / 0.8101 GB, free: 49.36 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/1.383, allocations: 136.8 kB / 0.8103 GB, free: 49.15 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.758/5.14, allocations: 0 / 0.8103 GB, free: 49.15 MB / 458.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)