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.001569/0.001569, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001714/0.001714, allocations: 219.2 kB / 22.26 MB, free: 5.125 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.98 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.05194/0.05194, allocations: 9.239 MB / 321.7 MB, free: 10.04 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",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.002137/0.002137, allocations: 71.91 kB / 447.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1195, allocations: 55.47 MB / 0.4914 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01335/0.1328, allocations: 10.55 MB / 0.5017 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007165/0.14, allocations: 3.029 MB / 0.5047 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.1415, allocations: 51.81 kB / 0.5047 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.1431, allocations: 464.8 kB / 0.5052 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004691/0.1478, allocations: 1.63 MB / 0.5068 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009482/0.1488, allocations: 219.6 kB / 0.507 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004586/0.1533, allocations: 3.008 MB / 0.5099 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001724/0.1551, allocations: 0.972 MB / 0.5109 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.1568, allocations: 1.128 MB / 0.512 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/0.1595, allocations: 1.677 MB / 0.5136 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008148/0.1603, allocations: 279.9 kB / 0.5139 GB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2461/0.4064, allocations: 0.9193 MB / 0.5148 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001658/0.4081, allocations: 1.418 MB / 0.5162 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.4099, allocations: 1.842 MB / 0.518 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006988/0.4169, allocations: 5.702 MB / 0.5235 GB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4169, allocations: 0.5312 kB / 0.5235 GB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4169, allocations: 0 / 0.5235 GB, free: 8.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001375/0.417, allocations: 0.8438 kB / 0.5235 GB, free: 8.422 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.01655/0.4336, allocations: 5.803 MB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.4336, allocations: 9.688 kB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001645/0.4353, allocations: 0.6288 MB / 0.5298 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006985/0.4423, allocations: 1.864 MB / 0.5316 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003872/0.4461, allocations: 1.511 MB / 0.5331 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.4463, allocations: 191.5 kB / 0.5333 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005609/0.4469, allocations: 248.7 kB / 0.5335 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01586/0.4627, allocations: 9.307 MB / 0.5426 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.646e-05/0.4628, allocations: 34.98 kB / 0.5427 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004862/0.4633, allocations: 116.3 kB / 0.5428 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003043/0.4664, allocations: 2.072 MB / 0.5448 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01707/0.4834, allocations: 8.247 MB / 0.5528 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05036/0.5338, allocations: 29.95 MB / 0.5821 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008011/0.5418, allocations: 2.465 MB / 0.5845 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.5438, allocations: 1.034 MB / 0.5855 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008712/0.5525, allocations: 3.752 MB / 0.5892 GB, free: 7.711 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/0.5526, allocations: 48.69 kB / 0.5892 GB, free: 7.652 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.16e-06/0.5526, allocations: 2.625 kB / 0.5892 GB, free: 7.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03406/0.5867, allocations: 11.98 MB / 0.6009 GB, free: 11.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01269/0.5993, allocations: 8.976 MB / 0.6097 GB, free: 2.398 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005933/0.6053, allocations: 3.084 MB / 0.6127 GB, free: 15.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002773/0.6056, allocations: 65.14 kB / 0.6128 GB, free: 15.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002263/0.6078, allocations: 2.529 MB / 0.6152 GB, free: 12.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.609, allocations: 0.9027 MB / 0.6161 GB, free: 11.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001842/0.6109, allocations: 1.008 MB / 0.6171 GB, free: 10.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.611, allocations: 304.9 kB / 0.6174 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003071/0.6141, allocations: 1.689 MB / 0.619 GB, free: 8.809 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005341/0.6194, allocations: 4.316 MB / 0.6233 GB, free: 3.25 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0089/0.6283, allocations: 6.506 MB / 0.6296 GB, free: 11.85 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.185e-05/0.6284, allocations: 28 kB / 0.6296 GB, free: 11.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01408/0.6425, allocations: 6.627 MB / 0.6361 GB, free: 5.316 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.951e-05/0.6425, allocations: 48.06 kB / 0.6362 GB, free: 5.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/0.6427, allocations: 92 kB / 0.6362 GB, free: 5.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/0.6447, allocations: 0.7319 MB / 0.637 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004022/0.6487, allocations: 1.068 MB / 0.638 GB, free: 3.367 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01766/0.6664, allocations: 13.08 MB / 0.6508 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004371/0.6707, allocations: 291.8 kB / 0.6511 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/0.6718, allocations: 299.9 kB / 0.6513 GB, free: 5.152 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.004314/0.6762, allocations: 1.794 MB / 0.6531 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008027/0.677, allocations: 302 kB / 0.6534 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007313/0.6843, allocations: 3.408 MB / 0.6567 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005585/0.6899, allocations: 2.943 MB / 0.6596 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.604e-05/0.6899, allocations: 8.375 kB / 0.6596 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.542e-05/0.6899, allocations: 11.95 kB / 0.6596 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/0.7144, allocations: 10.29 MB / 0.6697 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.7144, allocations: 4 kB / 0.6697 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.7155, allocations: 279.5 kB / 0.6699 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002231/0.7177, allocations: 0.7827 MB / 0.6707 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.7179, allocations: 47.98 kB / 0.6707 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01731/0.7352, allocations: 12.97 MB / 0.6834 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008038/0.7432, allocations: 5.779 MB / 0.689 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009119/0.7523, allocations: 5.004 MB / 0.6939 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.7534, allocations: 302 kB / 0.6942 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005899/0.754, allocations: 44 kB / 0.6943 GB, free: 8.117 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.7555, allocations: 107.9 kB / 0.6944 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004686/0.7559, allocations: 173.5 kB / 0.6945 GB, free: 7.844 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002208/0.7562, allocations: 67.97 kB / 0.6946 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004042/0.7602, allocations: 1.976 MB / 0.6965 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7602, allocations: 0 / 0.6965 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005139/0.7653, allocations: 0.9719 MB / 0.6975 GB, free: 4.828 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.009169/0.7745, allocations: 5.68 MB / 0.703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008965/0.7835, allocations: 4.696 MB / 0.7076 GB, free: 10.33 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/0.7835, allocations: 8.062 kB / 0.7076 GB, free: 10.32 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003381/0.7869, allocations: 2.08 MB / 0.7096 GB, free: 8.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/0.7896, allocations: 485.7 kB / 0.7101 GB, free: 7.715 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2727/1.062, allocations: 36.25 MB / 0.7455 GB, free: 167.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002835/1.065, allocations: 2.958 MB / 0.7484 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002856/1.068, allocations: 1.382 MB / 0.7498 GB, free: 165.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/1.07, allocations: 1.635 MB / 0.7513 GB, free: 164.4 MB / 0.545 GB Notification: Performance of SimCode: time 3.697e-06/1.07, allocations: 4 kB / 0.7514 GB, free: 164.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1333/1.203, allocations: 69.85 MB / 0.8196 GB, free: 101.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.41/23.61, allocations: 14.91 kB / 0.8196 GB, free: 101.4 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.366378410952166] Failed to read output from testmodel.py, exit status != 0: 23.774428887059912 23.784434045 23.365106306 Calling exit ...