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.001371/0.001371, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001661/0.001661, allocations: 211.4 kB / 22.24 MB, free: 4.859 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.777 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.04918/0.04918, allocations: 9.245 MB / 321.7 MB, free: 9.832 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.00208/0.00208, allocations: 63.91 kB / 447.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.137, allocations: 55.48 MB / 0.4913 GB, free: 6.977 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01423/0.1512, allocations: 9.141 MB / 0.5003 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008489/0.1597, allocations: 2.88 MB / 0.5031 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.1611, allocations: 55.81 kB / 0.5031 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.1623, allocations: 468.7 kB / 0.5036 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004311/0.1666, allocations: 1.63 MB / 0.5052 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006318/0.1672, allocations: 223.6 kB / 0.5054 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00426/0.1715, allocations: 3 MB / 0.5083 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001461/0.173, allocations: 0.9563 MB / 0.5093 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.1744, allocations: 1.121 MB / 0.5103 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.1767, allocations: 1.591 MB / 0.5119 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005523/0.1773, allocations: 280 kB / 0.5122 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.179, allocations: 0.8075 MB / 0.513 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2426/0.4216, allocations: 1.408 MB / 0.5143 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001791/0.4234, allocations: 1.32 MB / 0.5156 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006795/0.4302, allocations: 5.719 MB / 0.5212 GB, free: 9.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4302, allocations: 0 / 0.5212 GB, free: 9.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4302, allocations: 0.5938 kB / 0.5212 GB, free: 9.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002106/0.4304, allocations: 0.7969 kB / 0.5212 GB, free: 9.078 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.01606/0.4465, allocations: 5.798 MB / 0.5269 GB, free: 7.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4465, allocations: 9.406 kB / 0.5269 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001191/0.4477, allocations: 0.6323 MB / 0.5275 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006825/0.4545, allocations: 1.859 MB / 0.5293 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003899/0.4584, allocations: 1.53 MB / 0.5308 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.4586, allocations: 189 kB / 0.531 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006775/0.4593, allocations: 249.9 kB / 0.5312 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/0.475, allocations: 9.3 MB / 0.5403 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.4751, allocations: 34.48 kB / 0.5403 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003817/0.4755, allocations: 121.8 kB / 0.5405 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003188/0.4787, allocations: 2.079 MB / 0.5425 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.4962, allocations: 8.224 MB / 0.5505 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05496/0.5512, allocations: 28.45 MB / 0.5783 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008683/0.5598, allocations: 2.467 MB / 0.5807 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002478/0.5623, allocations: 1.032 MB / 0.5817 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.5724, allocations: 3.437 MB / 0.5851 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.5724, allocations: 47.88 kB / 0.5851 GB, free: 12.19 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.59e-06/0.5724, allocations: 0 / 0.5851 GB, free: 12.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03615/0.6086, allocations: 11.99 MB / 0.5968 GB, free: 236 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01226/0.6208, allocations: 8.917 MB / 0.6055 GB, free: 6.996 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005832/0.6267, allocations: 3.24 MB / 0.6087 GB, free: 3.734 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004707/0.6271, allocations: 60.75 kB / 0.6088 GB, free: 3.672 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002234/0.6294, allocations: 2.516 MB / 0.6112 GB, free: 1.164 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001484/0.6309, allocations: 0.9121 MB / 0.6121 GB, free: 272 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001698/0.6326, allocations: 1.006 MB / 0.6131 GB, free: 15.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.6327, allocations: 305.1 kB / 0.6134 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003039/0.6357, allocations: 1.689 MB / 0.615 GB, free: 13.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005361/0.6411, allocations: 4.318 MB / 0.6192 GB, free: 7.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00918/0.6503, allocations: 6.5 MB / 0.6256 GB, free: 308 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.441e-05/0.6504, allocations: 24 kB / 0.6256 GB, free: 284 kB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01674/0.6671, allocations: 6.63 MB / 0.6321 GB, free: 9.777 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.878e-05/0.6672, allocations: 44 kB / 0.6321 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.6673, allocations: 92 kB / 0.6322 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.6694, allocations: 0.7288 MB / 0.6329 GB, free: 8.906 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/0.6731, allocations: 1.064 MB / 0.634 GB, free: 7.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/0.6887, allocations: 13 MB / 0.6467 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003964/0.6926, allocations: 298.6 kB / 0.647 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008273/0.6935, allocations: 296 kB / 0.6472 GB, free: 9.707 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.003694/0.6972, allocations: 1.794 MB / 0.649 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006486/0.6978, allocations: 305.9 kB / 0.6493 GB, free: 7.605 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006398/0.7042, allocations: 3.412 MB / 0.6526 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005415/0.7096, allocations: 2.934 MB / 0.6555 GB, free: 1.211 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.7096, allocations: 4 kB / 0.6555 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/0.7097, allocations: 15.95 kB / 0.6555 GB, free: 1.191 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02047/0.7301, allocations: 9.935 MB / 0.6652 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.7301, allocations: 4 kB / 0.6652 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.7312, allocations: 271.6 kB / 0.6655 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/0.7333, allocations: 0.7772 MB / 0.6662 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001444/0.7334, allocations: 43.98 kB / 0.6663 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/0.7491, allocations: 12.87 MB / 0.6788 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007306/0.7564, allocations: 5.726 MB / 0.6844 GB, free: 2.629 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008992/0.7654, allocations: 5.021 MB / 0.6893 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.7665, allocations: 294 kB / 0.6896 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/0.7671, allocations: 43.98 kB / 0.6896 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.7684, allocations: 107.9 kB / 0.6897 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003892/0.7688, allocations: 165.6 kB / 0.6899 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.769, allocations: 71.97 kB / 0.69 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003398/0.7724, allocations: 1.969 MB / 0.6919 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7724, allocations: 0 / 0.6919 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004832/0.7772, allocations: 0.9755 MB / 0.6928 GB, free: 9.922 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.008947/0.7862, allocations: 5.673 MB / 0.6984 GB, free: 4.18 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008575/0.7947, allocations: 4.707 MB / 0.703 GB, free: 15.42 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.7947, allocations: 4 kB / 0.703 GB, free: 15.42 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003524/0.7983, allocations: 2.083 MB / 0.705 GB, free: 13.27 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003477/0.8017, allocations: 470.1 kB / 0.7055 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3058/1.108, allocations: 36.26 MB / 0.7409 GB, free: 168.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004431/1.112, allocations: 2.401 MB / 0.7432 GB, free: 167.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003216/1.115, allocations: 1.389 MB / 0.7446 GB, free: 167.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00247/1.118, allocations: 1.63 MB / 0.7462 GB, free: 166.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.774e-06/1.118, allocations: 0 / 0.7462 GB, free: 166.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1196/1.237, allocations: 66.03 MB / 0.8107 GB, free: 107 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.09/18.33, allocations: 2.656 kB / 0.8107 GB, free: 107 MB / 0.545 GB " [Timeout remaining time 642] (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: 21.05157551402226] Failed to read output from testmodel.py, exit status != 0: 18.49361392715946 18.512964615 18.078850648 Calling exit ...