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.001984/0.001984, 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.496/1.496, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0008968/0.0008969, allocations: 93.72 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03757/0.03757, allocations: 8.825 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.561e-05/1.565e-05, allocations: 1.375 kB / 398.8 MB, free: 47.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09272/0.09275, allocations: 52.39 MB / 451.2 MB, free: 4.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3864/0.4792, allocations: 87.83 MB / 0.5264 GB, free: 28.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4795, allocations: 72.7 kB / 0.5264 GB, free: 28.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1696/0.649, allocations: 72.01 MB / 0.5967 GB, free: 5.996 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6491, allocations: 0 / 0.5967 GB, free: 5.996 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001068/0.6492, allocations: 60 kB / 0.5968 GB, free: 5.938 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.01371/0.6629, allocations: 3.923 MB / 0.6006 GB, free: 2.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.663, allocations: 12.02 kB / 0.6006 GB, free: 2.254 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009287/0.6723, allocations: 2.011 MB / 0.6026 GB, free: 244 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/0.6773, allocations: 1.929 MB / 0.6045 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.6774, allocations: 112 kB / 0.6046 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.6787, allocations: 207.6 kB / 0.6048 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01071/0.6894, allocations: 6.022 MB / 0.6107 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/0.7056, allocations: 8.097 MB / 0.6186 GB, free: 1.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001079/0.7058, allocations: 27.75 kB / 0.6186 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004396/0.7062, allocations: 19.94 kB / 0.6186 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001569/0.7078, allocations: 1.037 MB / 0.6196 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04271/0.7505, allocations: 29.31 MB / 0.6483 GB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00452/0.7551, allocations: 2.869 MB / 0.6511 GB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.7567, allocations: 0.993 MB / 0.652 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008172/0.7649, allocations: 5.427 MB / 0.6573 GB, free: 7.926 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.7649, allocations: 55.81 kB / 0.6574 GB, free: 7.863 MB / 426.7 MB Notification: Performance of pre-optimization done (n=173): time 4.699e-06/0.765, allocations: 0 / 0.6574 GB, free: 7.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=233): time 0.0202/0.7852, allocations: 9.241 MB / 0.6664 GB, free: 14.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.7853, allocations: 77.34 kB / 0.6665 GB, free: 14.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003891/0.7892, allocations: 2.184 MB / 0.6686 GB, free: 12.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003578/0.7895, allocations: 29.7 kB / 0.6686 GB, free: 12.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00194/0.7915, allocations: 2.503 MB / 0.6711 GB, free: 9.637 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009534/0.7924, allocations: 0.8245 MB / 0.6719 GB, free: 8.801 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/0.7927, allocations: 0 / 0.6719 GB, free: 8.801 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004264/0.7931, allocations: 0.5768 MB / 0.6725 GB, free: 8.215 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002458/0.7956, allocations: 1.576 MB / 0.674 GB, free: 6.629 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004722/0.8003, allocations: 4.286 MB / 0.6782 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004333/0.8047, allocations: 2.653 MB / 0.6808 GB, free: 14.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.085e-05/0.8048, allocations: 28 kB / 0.6808 GB, free: 14.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=690) (initialization): time 0.01303/0.8178, allocations: 5.988 MB / 0.6867 GB, free: 8.305 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.021e-05/0.8179, allocations: 48 kB / 0.6867 GB, free: 8.258 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/0.818, allocations: 96 kB / 0.6868 GB, free: 8.164 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001782/0.8198, allocations: 0.6937 MB / 0.6875 GB, free: 7.457 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004241/0.8241, allocations: 1.107 MB / 0.6885 GB, free: 6.348 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2786/1.103, allocations: 11.94 MB / 0.7002 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/1.106, allocations: 188.7 kB / 0.7004 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007141/1.107, allocations: 305.9 kB / 0.7007 GB, free: 111.8 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation2.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 (612): * Single equations (assignments): 601 * 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.0007085/1.108, allocations: 355.8 kB / 0.701 GB, free: 111.7 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005051/1.113, allocations: 2.842 MB / 0.7038 GB, free: 111.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004258/1.113, allocations: 243.6 kB / 0.704 GB, free: 111.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005799/1.119, allocations: 3.081 MB / 0.707 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004369/1.123, allocations: 2.704 MB / 0.7097 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/1.123, allocations: 7.094 kB / 0.7097 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.873e-05/1.124, allocations: 13.8 kB / 0.7097 GB, free: 111.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/1.138, allocations: 9.339 MB / 0.7188 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/1.138, allocations: 3.375 kB / 0.7188 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009677/1.139, allocations: 260.6 kB / 0.7191 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/1.141, allocations: 0.6973 MB / 0.7197 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/1.141, allocations: 18.17 kB / 0.7198 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/1.152, allocations: 11.82 MB / 0.7313 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005312/1.157, allocations: 5.483 MB / 0.7367 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006538/1.164, allocations: 4.67 MB / 0.7412 GB, free: 99.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007042/1.164, allocations: 321.9 kB / 0.7415 GB, free: 98.78 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003049/1.165, allocations: 3.5 kB / 0.7415 GB, free: 98.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/1.166, allocations: 77.55 kB / 0.7416 GB, free: 98.78 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/1.166, allocations: 150.1 kB / 0.7417 GB, free: 98.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.166, allocations: 64.25 kB / 0.7418 GB, free: 98.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002096/1.168, allocations: 1.447 MB / 0.7432 GB, free: 98.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.168, allocations: 0 / 0.7432 GB, free: 98.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005073/1.173, allocations: 0.8578 MB / 0.7441 GB, free: 98.14 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (152): * Single equations (assignments): 143 * 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.006623/1.18, allocations: 5.688 MB / 0.7496 GB, free: 95.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006795/1.187, allocations: 4.462 MB / 0.754 GB, free: 93.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/1.187, allocations: 3.812 kB / 0.754 GB, free: 93.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002603/1.189, allocations: 1.983 MB / 0.7559 GB, free: 92.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/1.191, allocations: 240.3 kB / 0.7561 GB, free: 92.53 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01807/1.209, allocations: 7.532 MB / 0.7635 GB, free: 88.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002891/1.212, allocations: 3.034 MB / 0.7665 GB, free: 85.91 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003578/1.216, allocations: 1.367 MB / 0.7678 GB, free: 85.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002369/1.218, allocations: 1.628 MB / 0.7694 GB, free: 83.64 MB / 458.7 MB Notification: Performance of SimCode: time 1.853e-06/1.218, allocations: 0 / 0.7694 GB, free: 83.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09685/1.315, allocations: 62.63 MB / 0.8305 GB, free: 28.88 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/1.315, allocations: 154.5 kB / 0.8307 GB, free: 28.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.881/5.196, allocations: 0 / 0.8307 GB, free: 28.68 MB / 458.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)