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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008961/0.0008961, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005586/0.005587, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1403/0.1403, allocations: 9.099 MB / 300.5 MB, free: 2.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002665, allocations: 12 kB / 363.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08296/0.08324, allocations: 52.42 MB / 416.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.1832/0.2665, allocations: 43.01 MB / 459.2 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.2831, allocations: 9.207 MB / 468.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005329/0.2885, allocations: 166.5 kB / 468.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000789/0.2893, allocations: 366.3 kB / 469 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.2918, allocations: 1.476 MB / 470.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.2922, allocations: 190.5 kB / 470.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002388/0.2946, allocations: 4.073 MB / 474.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008387/0.2955, allocations: 1.05 MB / 475.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006367/0.2961, allocations: 0.9243 MB / 476.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.2973, allocations: 1.536 MB / 478.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002266/0.2975, allocations: 155.5 kB / 478.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.2986, allocations: 0.7968 MB / 479.2 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008454/0.2994, allocations: 1.311 MB / 480.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.3005, allocations: 1.769 MB / 482.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003933/0.3044, allocations: 5.149 MB / 487.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3044, allocations: 1.375 kB / 487.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3044, allocations: 0 / 487.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.197e-05/0.3045, allocations: 0 / 487.4 MB, free: 3.137 MB / 350.1 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.01092/0.3154, allocations: 4.97 MB / 492.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3155, allocations: 10.94 kB / 492.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009837/0.3165, allocations: 0.6305 MB / 493 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006823/0.3233, allocations: 1.883 MB / 494.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.3257, allocations: 1.572 MB / 496.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.3259, allocations: 189.7 kB / 496.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004741/0.3264, allocations: 242.5 kB / 496.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/0.3388, allocations: 9.307 MB / 0.4943 GB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.887e-05/0.3389, allocations: 31.72 kB / 0.4943 GB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003233/0.3392, allocations: 115.8 kB / 0.4945 GB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00299/0.3422, allocations: 2.072 MB / 0.4965 GB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01241/0.3546, allocations: 8.242 MB / 0.5045 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03233/0.387, allocations: 30.05 MB / 0.5339 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006904/0.3939, allocations: 3.036 MB / 0.5368 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.3955, allocations: 1.124 MB / 0.5379 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006955/0.4025, allocations: 6.279 MB / 0.5441 GB, free: 4.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.4025, allocations: 51.88 kB / 0.5441 GB, free: 4.602 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.596e-06/0.4026, allocations: 0 / 0.5441 GB, free: 4.602 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.02869/0.4312, allocations: 12.35 MB / 0.5562 GB, free: 8.094 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009475/0.4408, allocations: 8.791 MB / 0.5648 GB, free: 14.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005014/0.4458, allocations: 3.089 MB / 0.5678 GB, free: 11.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002991/0.4461, allocations: 57.69 kB / 0.5678 GB, free: 11.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.4475, allocations: 2.425 MB / 0.5702 GB, free: 9.227 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007077/0.4483, allocations: 0.8632 MB / 0.571 GB, free: 8.352 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004831/0.4488, allocations: 421.2 kB / 0.5714 GB, free: 7.934 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.871e-05/0.4488, allocations: 321.1 kB / 0.5717 GB, free: 7.617 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00251/0.4514, allocations: 1.689 MB / 0.5734 GB, free: 5.922 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003885/0.4553, allocations: 4.316 MB / 0.5776 GB, free: 328 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1787/0.634, allocations: 6.495 MB / 0.584 GB, free: 117.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.156e-05/0.6341, allocations: 25.88 kB / 0.584 GB, free: 117.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01002/0.6442, allocations: 6.624 MB / 0.5904 GB, free: 116.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.6442, allocations: 43.69 kB / 0.5905 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.228e-05/0.6443, allocations: 96.2 kB / 0.5906 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/0.6459, allocations: 0.7216 MB / 0.5913 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/0.6486, allocations: 1.074 MB / 0.5923 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.6589, allocations: 12.44 MB / 0.6045 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/0.6626, allocations: 291 kB / 0.6048 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003895/0.663, allocations: 294 kB / 0.605 GB, free: 107.1 MB / 446.1 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 (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (1,1,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002768/0.6657, allocations: 1.795 MB / 0.6068 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004117/0.6661, allocations: 285.5 kB / 0.6071 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004885/0.671, allocations: 3.446 MB / 0.6104 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004089/0.6751, allocations: 2.96 MB / 0.6133 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.6752, allocations: 7.312 kB / 0.6133 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.6752, allocations: 11.44 kB / 0.6133 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.691, allocations: 10.62 MB / 0.6237 GB, free: 99.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.691, allocations: 2.25 kB / 0.6237 GB, free: 99.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009956/0.692, allocations: 273.5 kB / 0.624 GB, free: 99.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/0.694, allocations: 0.7919 MB / 0.6248 GB, free: 99.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.6942, allocations: 51.52 kB / 0.6248 GB, free: 99.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.7052, allocations: 12.33 MB / 0.6368 GB, free: 90.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004876/0.7101, allocations: 5.756 MB / 0.6425 GB, free: 86.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006033/0.7162, allocations: 5.02 MB / 0.6474 GB, free: 84.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006524/0.7169, allocations: 367.4 kB / 0.6477 GB, free: 84.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002823/0.7172, allocations: 43.55 kB / 0.6478 GB, free: 84.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.7182, allocations: 122.5 kB / 0.6479 GB, free: 84.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003156/0.7185, allocations: 152.2 kB / 0.648 GB, free: 84.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.7187, allocations: 68.61 kB / 0.6481 GB, free: 84.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.721, allocations: 1.97 MB / 0.65 GB, free: 82.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.721, allocations: 7.609 kB / 0.65 GB, free: 82.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003537/0.7246, allocations: 0.9926 MB / 0.651 GB, free: 81.78 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 150 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005951/0.7305, allocations: 5.687 MB / 0.6565 GB, free: 76.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005714/0.7363, allocations: 4.836 MB / 0.6613 GB, free: 72.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.7363, allocations: 0 / 0.6613 GB, free: 72.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002286/0.7386, allocations: 2.177 MB / 0.6634 GB, free: 69.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/0.7416, allocations: 448.2 kB / 0.6638 GB, free: 69.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0466/0.7883, allocations: 42.15 MB / 0.705 GB, free: 21.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002939/0.7912, allocations: 2.96 MB / 0.7079 GB, free: 18.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002874/0.7941, allocations: 1.414 MB / 0.7093 GB, free: 17.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.7957, allocations: 1.628 MB / 0.7108 GB, free: 15.73 MB / 446.1 MB Notification: Performance of SimCode: time 1.633e-06/0.7957, allocations: 3.938 kB / 0.7108 GB, free: 15.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2377/1.033, allocations: 65.62 MB / 0.7749 GB, free: 136.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/1.034, allocations: 250.3 kB / 0.7752 GB, free: 136.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.164/4.197, allocations: 0 / 0.7752 GB, free: 136.3 MB / 478.1 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/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)