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.001553/0.001553, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001838/0.001838, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.627/1.627, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.04728/0.04728, allocations: 9.226 MB / 318.8 MB, free: 15.55 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.001996/0.001996, allocations: 66.59 kB / 443.2 MB, free: 39.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1139, allocations: 55.44 MB / 498.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01096/0.1249, allocations: 10.52 MB / 0.4973 GB, free: 12.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006629/0.1315, allocations: 3.014 MB / 0.5002 GB, free: 9.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.1328, allocations: 51.81 kB / 0.5003 GB, free: 8.961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001098/0.1339, allocations: 460.8 kB / 0.5007 GB, free: 8.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004157/0.1381, allocations: 1.634 MB / 0.5023 GB, free: 6.867 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006531/0.1387, allocations: 211.7 kB / 0.5025 GB, free: 6.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004218/0.143, allocations: 3.01 MB / 0.5054 GB, free: 3.645 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.1445, allocations: 0.9988 MB / 0.5064 GB, free: 2.613 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.1464, allocations: 1.117 MB / 0.5075 GB, free: 1.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.1491, allocations: 1.673 MB / 0.5091 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006501/0.1498, allocations: 276 kB / 0.5094 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002044/0.1518, allocations: 0.9284 MB / 0.5103 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00163/0.1534, allocations: 1.41 MB / 0.5117 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.1558, allocations: 1.848 MB / 0.5135 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008118/0.1639, allocations: 5.695 MB / 0.5191 GB, free: 5.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1639, allocations: 0 / 0.5191 GB, free: 5.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1639, allocations: 3.938 kB / 0.5191 GB, free: 5.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000182/0.1641, allocations: 7.938 kB / 0.5191 GB, free: 5.609 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.01783/0.1819, allocations: 5.878 MB / 0.5248 GB, free: 15.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.182, allocations: 8.031 kB / 0.5248 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000148/0.1821, allocations: 92.98 kB / 0.5249 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001727/0.1839, allocations: 0.6301 MB / 0.5255 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008071/0.1919, allocations: 1.859 MB / 0.5273 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004252/0.1962, allocations: 1.588 MB / 0.5289 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.1965, allocations: 188.6 kB / 0.5291 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001371/0.1979, allocations: 243.8 kB / 0.5293 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02054/0.2184, allocations: 9.303 MB / 0.5384 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/0.2186, allocations: 31.7 kB / 0.5384 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001068/0.2197, allocations: 115.9 kB / 0.5385 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004145/0.2238, allocations: 2.072 MB / 0.5405 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.2429, allocations: 8.237 MB / 0.5486 GB, free: 6.734 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05097/0.2939, allocations: 29.99 MB / 0.5779 GB, free: 8.113 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009188/0.3031, allocations: 2.921 MB / 0.5807 GB, free: 5.074 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002173/0.3053, allocations: 1.034 MB / 0.5817 GB, free: 4.035 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2746/0.5798, allocations: 6.284 MB / 0.5879 GB, free: 88.09 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.5799, allocations: 46.16 kB / 0.5879 GB, free: 88.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.049e-06/0.5799, allocations: 3.562 kB / 0.5879 GB, free: 88.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=239): time 0.03178/0.6117, allocations: 12.36 MB / 0.6 GB, free: 84.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009067/0.6207, allocations: 9.304 MB / 0.6091 GB, free: 77.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004119/0.6248, allocations: 3.08 MB / 0.6121 GB, free: 76.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002978/0.6251, allocations: 69.05 kB / 0.6121 GB, free: 76.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.6263, allocations: 2.52 MB / 0.6146 GB, free: 73.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007473/0.627, allocations: 0.9032 MB / 0.6155 GB, free: 72.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00106/0.6281, allocations: 1.005 MB / 0.6165 GB, free: 71.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.017e-05/0.6281, allocations: 305.1 kB / 0.6168 GB, free: 71.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/0.6302, allocations: 1.689 MB / 0.6184 GB, free: 69.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002816/0.633, allocations: 4.318 MB / 0.6226 GB, free: 64.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005535/0.6386, allocations: 6.503 MB / 0.629 GB, free: 56.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.808e-05/0.6386, allocations: 28 kB / 0.629 GB, free: 56.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01/0.6486, allocations: 6.642 MB / 0.6355 GB, free: 49.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.6487, allocations: 47.19 kB / 0.6355 GB, free: 49.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.277e-05/0.6488, allocations: 88 kB / 0.6356 GB, free: 49.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.6505, allocations: 0.7238 MB / 0.6363 GB, free: 49.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003058/0.6535, allocations: 1.076 MB / 0.6374 GB, free: 48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.6642, allocations: 13.6 MB / 0.6507 GB, free: 33.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/0.6683, allocations: 299.2 kB / 0.6509 GB, free: 33.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006103/0.6689, allocations: 300 kB / 0.6512 GB, free: 33.14 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.002377/0.6713, allocations: 1.785 MB / 0.653 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005381/0.6718, allocations: 298 kB / 0.6533 GB, free: 31.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005079/0.6769, allocations: 3.408 MB / 0.6566 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004152/0.681, allocations: 2.946 MB / 0.6595 GB, free: 24.65 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.6811, allocations: 8 kB / 0.6595 GB, free: 24.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.6811, allocations: 11.95 kB / 0.6595 GB, free: 24.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.6964, allocations: 10.46 MB / 0.6697 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/0.6964, allocations: 4.375 kB / 0.6697 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/0.6974, allocations: 271.6 kB / 0.67 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/0.6993, allocations: 0.7839 MB / 0.6707 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/0.6994, allocations: 54.34 kB / 0.6708 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.7106, allocations: 13.48 MB / 0.6839 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007639/0.7183, allocations: 5.985 MB / 0.6898 GB, free: 8.496 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008824/0.7271, allocations: 5.018 MB / 0.6947 GB, free: 3.406 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.7282, allocations: 375 kB / 0.695 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005477/0.7287, allocations: 44.11 kB / 0.6951 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.7301, allocations: 107.9 kB / 0.6952 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004181/0.7305, allocations: 165.6 kB / 0.6953 GB, free: 2.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/0.7307, allocations: 67.98 kB / 0.6954 GB, free: 2.645 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003317/0.734, allocations: 1.969 MB / 0.6973 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.734, allocations: 0 / 0.6973 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005094/0.7391, allocations: 0.9724 MB / 0.6983 GB, free: 15.7 MB / 478.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.009216/0.7483, allocations: 5.697 MB / 0.7038 GB, free: 9.941 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00823/0.7565, allocations: 4.699 MB / 0.7084 GB, free: 5.191 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.7565, allocations: 0 / 0.7084 GB, free: 5.191 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003662/0.7602, allocations: 2.082 MB / 0.7105 GB, free: 3.051 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002934/0.7631, allocations: 486.5 kB / 0.7109 GB, free: 2.598 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0673/0.8304, allocations: 36.18 MB / 0.7463 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004584/0.835, allocations: 2.964 MB / 0.7492 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003792/0.8388, allocations: 1.378 MB / 0.7505 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003234/0.842, allocations: 1.636 MB / 0.7521 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of SimCode: time 1.313e-06/0.842, allocations: 4 kB / 0.7521 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.372/1.214, allocations: 65.63 MB / 0.8162 GB, free: 175.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.44/22.65, allocations: 9.625 kB / 0.8162 GB, free: 175.6 MB / 0.545 GB " [Timeout remaining time 637] (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: 25.649119918991346] Failed to read output from testmodel.py, exit status != 0: 22.861697043001186 22.88264444 22.714811677 Calling exit ...