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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 220.3 kB / 23.03 MB, free: 4.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04966/0.04966, allocations: 9.246 MB / 322.5 MB, free: 9.848 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 67.89 kB / 448.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1097, allocations: 55.48 MB / 0.4921 GB, free: 7.039 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01179/0.1214, allocations: 9.096 MB / 0.501 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006334/0.1278, allocations: 2.869 MB / 0.5038 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.1291, allocations: 51.81 kB / 0.5038 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.1303, allocations: 468.8 kB / 0.5043 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00427/0.1346, allocations: 1.63 MB / 0.5059 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006672/0.1352, allocations: 219.6 kB / 0.5061 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004139/0.1394, allocations: 2.997 MB / 0.509 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.1411, allocations: 0.9836 MB / 0.51 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.143, allocations: 1.121 MB / 0.5111 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002655/0.1456, allocations: 1.677 MB / 0.5127 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006017/0.1462, allocations: 280 kB / 0.513 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.148, allocations: 0.8153 MB / 0.5138 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2547/0.4027, allocations: 1.409 MB / 0.5152 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001702/0.4044, allocations: 1.319 MB / 0.5164 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006111/0.4105, allocations: 5.715 MB / 0.522 GB, free: 9.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.4106, allocations: 0 / 0.522 GB, free: 9.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4106, allocations: 0 / 0.522 GB, free: 9.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001567/0.4107, allocations: 2.281 kB / 0.522 GB, free: 9.148 MB / 382.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.01567/0.4264, allocations: 5.805 MB / 0.5277 GB, free: 7.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4264, allocations: 11.06 kB / 0.5277 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001349/0.4266, allocations: 85.89 kB / 0.5278 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009358/0.4275, allocations: 0.6277 MB / 0.5284 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006893/0.4344, allocations: 1.863 MB / 0.5302 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003836/0.4382, allocations: 1.529 MB / 0.5317 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.4384, allocations: 188.3 kB / 0.5319 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007589/0.4392, allocations: 246.5 kB / 0.5321 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01522/0.4544, allocations: 9.306 MB / 0.5412 GB, free: 3.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.813e-05/0.4545, allocations: 32.86 kB / 0.5412 GB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/0.4549, allocations: 116.2 kB / 0.5414 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002828/0.4577, allocations: 2.078 MB / 0.5434 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01513/0.4728, allocations: 8.242 MB / 0.5514 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04641/0.5192, allocations: 28.44 MB / 0.5792 GB, free: 3.082 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008497/0.5277, allocations: 2.468 MB / 0.5816 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00218/0.5299, allocations: 1.03 MB / 0.5826 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007997/0.5379, allocations: 3.451 MB / 0.586 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.912e-05/0.538, allocations: 48.44 kB / 0.586 GB, free: 12.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.539e-06/0.538, allocations: 0 / 0.586 GB, free: 12.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03274/0.5707, allocations: 11.97 MB / 0.5977 GB, free: 148 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01165/0.5824, allocations: 8.931 MB / 0.6065 GB, free: 6.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005579/0.5879, allocations: 3.089 MB / 0.6095 GB, free: 3.801 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004147/0.5884, allocations: 57.7 kB / 0.6095 GB, free: 3.738 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/0.5905, allocations: 2.519 MB / 0.612 GB, free: 1.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/0.5917, allocations: 0.9057 MB / 0.6129 GB, free: 344 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001579/0.5933, allocations: 1.004 MB / 0.6139 GB, free: 15.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5934, allocations: 309.2 kB / 0.6142 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002915/0.5963, allocations: 1.689 MB / 0.6158 GB, free: 13.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005254/0.6016, allocations: 4.311 MB / 0.62 GB, free: 7.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/0.6118, allocations: 6.506 MB / 0.6264 GB, free: 372 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/0.6119, allocations: 24 kB / 0.6264 GB, free: 348 kB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01584/0.6278, allocations: 6.628 MB / 0.6329 GB, free: 9.812 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.6279, allocations: 44 kB / 0.6329 GB, free: 9.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001749/0.628, allocations: 92 kB / 0.633 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00202/0.6301, allocations: 0.7269 MB / 0.6337 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004074/0.6341, allocations: 1.068 MB / 0.6347 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/0.6504, allocations: 12.99 MB / 0.6474 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004011/0.6544, allocations: 298.8 kB / 0.6477 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008598/0.6553, allocations: 296 kB / 0.648 GB, free: 9.734 MB / 494.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.003772/0.659, allocations: 1.798 MB / 0.6498 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006439/0.6597, allocations: 298 kB / 0.65 GB, free: 7.637 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006488/0.6662, allocations: 3.412 MB / 0.6534 GB, free: 4.195 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005446/0.6716, allocations: 2.941 MB / 0.6562 GB, free: 1.234 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.6716, allocations: 8 kB / 0.6563 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-05/0.6717, allocations: 7.969 kB / 0.6563 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02292/0.6946, allocations: 9.927 MB / 0.666 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/0.6946, allocations: 4.375 kB / 0.666 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.6957, allocations: 283.6 kB / 0.6662 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/0.6979, allocations: 0.7748 MB / 0.667 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/0.6981, allocations: 43.98 kB / 0.667 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01636/0.7145, allocations: 12.86 MB / 0.6796 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007698/0.7222, allocations: 5.733 MB / 0.6852 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008831/0.731, allocations: 5.011 MB / 0.6901 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009777/0.732, allocations: 294 kB / 0.6904 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004558/0.7324, allocations: 43.98 kB / 0.6904 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.7336, allocations: 114.8 kB / 0.6905 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004458/0.7341, allocations: 165.8 kB / 0.6907 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/0.7343, allocations: 71.98 kB / 0.6907 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003993/0.7382, allocations: 1.969 MB / 0.6927 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.91e-07/0.7382, allocations: 0 / 0.6927 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005875/0.7441, allocations: 0.9726 MB / 0.6936 GB, free: 9.953 MB / 0.5294 GB 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.009136/0.7533, allocations: 5.684 MB / 0.6992 GB, free: 4.199 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008704/0.762, allocations: 4.705 MB / 0.7038 GB, free: 15.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.762, allocations: 4 kB / 0.7038 GB, free: 15.44 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003686/0.7657, allocations: 2.078 MB / 0.7058 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002762/0.7684, allocations: 475.4 kB / 0.7062 GB, free: 12.85 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2754/1.044, allocations: 36.25 MB / 0.7416 GB, free: 168.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003191/1.047, allocations: 2.409 MB / 0.744 GB, free: 167.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003228/1.05, allocations: 1.382 MB / 0.7453 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/1.052, allocations: 1.632 MB / 0.7469 GB, free: 166.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.403e-06/1.052, allocations: 0 / 0.7469 GB, free: 166.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/1.174, allocations: 67.91 MB / 0.8133 GB, free: 105.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.79/23.97, allocations: 4.062 kB / 0.8133 GB, free: 105.3 MB / 0.545 GB " [Timeout remaining time 636] (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 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.830878810957074] Failed to read output from testmodel.py, exit status != 0: 24.196989766904153 24.217960006 23.803112863 Calling exit ...