Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",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.001018/0.001018, 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.364/1.364, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.0009237/0.0009241, allocations: 99.84 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04199/0.04199, allocations: 8.823 MB / 345.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.34e-05, allocations: 4 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 52.39 MB / 458 MB, free: 8.945 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.415/0.5275, allocations: 88.5 MB / 0.5337 GB, free: 13.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001647/0.5277, allocations: 71.59 kB / 0.5338 GB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.198/0.7257, allocations: 74.28 MB / 0.6063 GB, free: 8.977 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7258, allocations: 0 / 0.6063 GB, free: 8.977 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000201/0.726, allocations: 68 kB / 0.6064 GB, free: 8.91 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.01832/0.7443, allocations: 3.917 MB / 0.6102 GB, free: 4.934 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.452e-05/0.7444, allocations: 15.97 kB / 0.6103 GB, free: 4.918 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003913/0.7483, allocations: 0.6729 MB / 0.6109 GB, free: 4.234 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/0.7601, allocations: 2.015 MB / 0.6129 GB, free: 2.211 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008027/0.7682, allocations: 1.923 MB / 0.6148 GB, free: 248 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004807/0.7688, allocations: 266.9 kB / 0.615 GB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002691/0.7715, allocations: 351.7 kB / 0.6153 GB, free: 15.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02674/0.7982, allocations: 8.816 MB / 0.624 GB, free: 6.344 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003666/0.7987, allocations: 27.81 kB / 0.624 GB, free: 6.316 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003046/0.8017, allocations: 155.9 kB / 0.6241 GB, free: 6.164 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002487/0.8042, allocations: 1.033 MB / 0.6251 GB, free: 5.129 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02024/0.8245, allocations: 8.031 MB / 0.633 GB, free: 13.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3278/1.152, allocations: 29.97 MB / 0.6623 GB, free: 95.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008387/1.161, allocations: 2.99 MB / 0.6652 GB, free: 95.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00204/1.163, allocations: 1.07 MB / 0.6662 GB, free: 95.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009973/1.173, allocations: 6.313 MB / 0.6724 GB, free: 91.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/1.173, allocations: 49.53 kB / 0.6724 GB, free: 91.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.578e-06/1.173, allocations: 0 / 0.6724 GB, free: 91.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=239): time 0.02602/1.199, allocations: 10.53 MB / 0.6827 GB, free: 90.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00671/1.206, allocations: 6.411 MB / 0.689 GB, free: 86.97 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004207/1.21, allocations: 2.668 MB / 0.6916 GB, free: 86.67 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004025/1.21, allocations: 58.19 kB / 0.6916 GB, free: 86.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001367/1.212, allocations: 2.415 MB / 0.694 GB, free: 85.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/1.213, allocations: 0.8645 MB / 0.6948 GB, free: 84.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/1.213, allocations: 101.6 kB / 0.6949 GB, free: 84.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002453/1.213, allocations: 0.5158 MB / 0.6954 GB, free: 84.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002298/1.215, allocations: 1.595 MB / 0.697 GB, free: 84.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003408/1.219, allocations: 4.199 MB / 0.7011 GB, free: 81.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003444/1.222, allocations: 2.645 MB / 0.7037 GB, free: 80.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.991e-05/1.222, allocations: 26.5 kB / 0.7037 GB, free: 80.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=666) (initialization): time 0.01011/1.232, allocations: 6.441 MB / 0.71 GB, free: 78.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.698e-05/1.233, allocations: 48.25 kB / 0.71 GB, free: 78.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.831e-05/1.233, allocations: 89.19 kB / 0.7101 GB, free: 78.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/1.234, allocations: 0.6904 MB / 0.7108 GB, free: 78.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003097/1.237, allocations: 1.063 MB / 0.7118 GB, free: 78.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/1.249, allocations: 12.35 MB / 0.7239 GB, free: 69.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00435/1.254, allocations: 280 kB / 0.7242 GB, free: 69.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004777/1.254, allocations: 302.1 kB / 0.7244 GB, free: 69.26 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 (588): * Single equations (assignments): 577 * Array equations: 6 * 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,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007973/1.255, allocations: 471 kB / 0.7249 GB, free: 68.87 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004807/1.255, allocations: 285.9 kB / 0.7252 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005306/1.261, allocations: 3.35 MB / 0.7284 GB, free: 67.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004136/1.265, allocations: 2.878 MB / 0.7313 GB, free: 66.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.265, allocations: 10.7 kB / 0.7313 GB, free: 66.54 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/1.265, allocations: 11.06 kB / 0.7313 GB, free: 66.54 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01631/1.281, allocations: 10.47 MB / 0.7415 GB, free: 62.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/1.281, allocations: 3.906 kB / 0.7415 GB, free: 62.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009549/1.282, allocations: 279.5 kB / 0.7418 GB, free: 62.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/1.284, allocations: 0.7087 MB / 0.7425 GB, free: 61.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/1.284, allocations: 47.61 kB / 0.7425 GB, free: 61.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01099/1.295, allocations: 12.23 MB / 0.7544 GB, free: 49.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005641/1.301, allocations: 5.664 MB / 0.76 GB, free: 44.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006746/1.308, allocations: 5.128 MB / 0.765 GB, free: 39.75 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/1.309, allocations: 369.8 kB / 0.7653 GB, free: 39.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002881/1.309, allocations: 40 kB / 0.7654 GB, free: 39.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/1.31, allocations: 117 kB / 0.7655 GB, free: 39.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/1.31, allocations: 158.9 kB / 0.7656 GB, free: 39.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/1.311, allocations: 61.59 kB / 0.7657 GB, free: 39.11 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002774/1.313, allocations: 1.871 MB / 0.7675 GB, free: 37.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.21e-07/1.313, allocations: 0 / 0.7675 GB, free: 37.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006228/1.32, allocations: 0.9947 MB / 0.7685 GB, free: 36.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * 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,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.007074/1.327, allocations: 6.535 MB / 0.7749 GB, free: 30.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007006/1.334, allocations: 4.684 MB / 0.7795 GB, free: 26.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.968e-06/1.334, allocations: 0 / 0.7795 GB, free: 26.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002786/1.337, allocations: 2.114 MB / 0.7815 GB, free: 24.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/1.339, allocations: 414.6 kB / 0.7819 GB, free: 23.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/1.355, allocations: 7.88 MB / 0.7896 GB, free: 16.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002871/1.358, allocations: 3.042 MB / 0.7926 GB, free: 14.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003788/1.362, allocations: 1.402 MB / 0.7939 GB, free: 13.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00228/1.364, allocations: 1.634 MB / 0.7955 GB, free: 11.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/1.364, allocations: 2.406 kB / 0.7955 GB, free: 11.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3768/1.741, allocations: 71.06 MB / 0.8649 GB, free: 115.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/1.741, allocations: 196.4 kB / 0.8651 GB, free: 115.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.145/5.887, allocations: 4 kB / 0.8651 GB, free: 115.1 MB / 474.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)