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.00162/0.00162, allocations: 105.2 kB / 19.72 MB, free: 2.234 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.002048/0.002048, allocations: 210.8 kB / 23.04 MB, free: 5.078 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 7.969 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.06713/0.06713, allocations: 9.234 MB / 322.5 MB, free: 10.05 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.002044/0.002044, allocations: 66.09 kB / 448.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1279, allocations: 55.47 MB / 0.4922 GB, free: 7.492 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01294/0.1408, allocations: 10.54 MB / 0.5025 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008116/0.1489, allocations: 3.025 MB / 0.5054 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.1507, allocations: 51.81 kB / 0.5055 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001279/0.152, allocations: 472.7 kB / 0.5059 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004817/0.1568, allocations: 1.638 MB / 0.5075 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007479/0.1576, allocations: 219.6 kB / 0.5077 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004676/0.1623, allocations: 2.999 MB / 0.5107 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.1641, allocations: 0.9836 MB / 0.5116 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.166, allocations: 1.121 MB / 0.5127 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00282/0.1688, allocations: 1.673 MB / 0.5144 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008319/0.1697, allocations: 279.9 kB / 0.5146 GB, free: 404 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2412/0.4109, allocations: 0.9249 MB / 0.5155 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.413, allocations: 1.419 MB / 0.5169 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002082/0.4151, allocations: 1.84 MB / 0.5187 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007311/0.4224, allocations: 5.707 MB / 0.5243 GB, free: 7.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4224, allocations: 0.6562 kB / 0.5243 GB, free: 7.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4224, allocations: 0 / 0.5243 GB, free: 7.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000192/0.4226, allocations: 3.094 kB / 0.5243 GB, free: 7.953 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.01579/0.4384, allocations: 5.796 MB / 0.53 GB, free: 6.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.4384, allocations: 13.75 kB / 0.53 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000162/0.4386, allocations: 89.8 kB / 0.5301 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008991/0.4395, allocations: 0.6359 MB / 0.5307 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006668/0.4461, allocations: 1.857 MB / 0.5325 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00354/0.4497, allocations: 1.514 MB / 0.534 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.4499, allocations: 193.2 kB / 0.5341 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007947/0.4507, allocations: 242.2 kB / 0.5344 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.4657, allocations: 9.307 MB / 0.5435 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-05/0.4657, allocations: 32.25 kB / 0.5435 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003729/0.4661, allocations: 116.4 kB / 0.5436 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/0.469, allocations: 2.074 MB / 0.5456 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01751/0.4865, allocations: 8.241 MB / 0.5537 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05296/0.5395, allocations: 29.96 MB / 0.5829 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009422/0.5489, allocations: 2.467 MB / 0.5853 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002606/0.5515, allocations: 1.033 MB / 0.5864 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009851/0.5614, allocations: 3.749 MB / 0.59 GB, free: 7.457 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.5614, allocations: 51.53 kB / 0.5901 GB, free: 7.398 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 7.163e-06/0.5614, allocations: 0.6094 kB / 0.5901 GB, free: 7.398 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03552/0.5969, allocations: 11.98 MB / 0.6018 GB, free: 11.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01207/0.609, allocations: 8.987 MB / 0.6105 GB, free: 2.133 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006174/0.6152, allocations: 3.085 MB / 0.6136 GB, free: 15.03 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003629/0.6156, allocations: 60.33 kB / 0.6136 GB, free: 14.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002258/0.6178, allocations: 2.518 MB / 0.6161 GB, free: 12.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00124/0.6191, allocations: 0.9036 MB / 0.617 GB, free: 11.56 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002137/0.6212, allocations: 1.015 MB / 0.6179 GB, free: 10.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.6213, allocations: 301.1 kB / 0.6182 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003183/0.6245, allocations: 1.693 MB / 0.6199 GB, free: 8.547 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006986/0.6315, allocations: 4.317 MB / 0.6241 GB, free: 2.988 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009826/0.6413, allocations: 6.496 MB / 0.6304 GB, free: 11.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/0.6414, allocations: 28 kB / 0.6305 GB, free: 11.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01497/0.6564, allocations: 6.628 MB / 0.6369 GB, free: 5.059 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/0.6565, allocations: 44 kB / 0.637 GB, free: 5.016 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/0.6567, allocations: 95.98 kB / 0.6371 GB, free: 4.922 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/0.6588, allocations: 0.7335 MB / 0.6378 GB, free: 4.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004009/0.6628, allocations: 1.072 MB / 0.6388 GB, free: 3.102 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/0.6794, allocations: 13.09 MB / 0.6516 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004278/0.6836, allocations: 287.7 kB / 0.6519 GB, free: 5.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/0.6847, allocations: 300 kB / 0.6522 GB, free: 4.879 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.004114/0.6888, allocations: 1.795 MB / 0.6539 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007723/0.6895, allocations: 298 kB / 0.6542 GB, free: 2.785 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007059/0.6966, allocations: 3.408 MB / 0.6576 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005853/0.7025, allocations: 2.937 MB / 0.6604 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.407e-05/0.7025, allocations: 8 kB / 0.6604 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-05/0.7025, allocations: 11.95 kB / 0.6604 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02383/0.7263, allocations: 10.3 MB / 0.6705 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/0.7264, allocations: 4 kB / 0.6705 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.7276, allocations: 271.6 kB / 0.6708 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/0.7299, allocations: 0.7852 MB / 0.6715 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003029/0.7302, allocations: 51.92 kB / 0.6716 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/0.7464, allocations: 12.98 MB / 0.6842 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00763/0.754, allocations: 5.775 MB / 0.6899 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009065/0.7631, allocations: 4.999 MB / 0.6948 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.7641, allocations: 306 kB / 0.6951 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007224/0.7648, allocations: 43.58 kB / 0.6951 GB, free: 7.852 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.7664, allocations: 115.8 kB / 0.6952 GB, free: 7.738 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004398/0.7668, allocations: 165.6 kB / 0.6954 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001754/0.767, allocations: 68.17 kB / 0.6954 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003931/0.7709, allocations: 1.969 MB / 0.6974 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.7709, allocations: 3.938 kB / 0.6974 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004982/0.7759, allocations: 0.9765 MB / 0.6983 GB, free: 4.559 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.009394/0.7853, allocations: 5.682 MB / 0.7039 GB, free: 14.81 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009114/0.7944, allocations: 4.699 MB / 0.7085 GB, free: 10.06 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/0.7944, allocations: 4.562 kB / 0.7085 GB, free: 10.06 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003877/0.7983, allocations: 2.081 MB / 0.7105 GB, free: 7.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.8019, allocations: 480 kB / 0.7109 GB, free: 7.453 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2801/1.082, allocations: 36.26 MB / 0.7464 GB, free: 167.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003193/1.085, allocations: 2.959 MB / 0.7492 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002975/1.088, allocations: 1.374 MB / 0.7506 GB, free: 165.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002012/1.09, allocations: 1.638 MB / 0.7522 GB, free: 164.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.282e-06/1.09, allocations: 0 / 0.7522 GB, free: 164.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/1.244, allocations: 69.89 MB / 0.8204 GB, free: 101.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.86/24.11, allocations: 8.062 kB / 0.8205 GB, free: 101.1 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: 27.053426148951985] Failed to read output from testmodel.py, exit status != 0: 24.33660077804234 24.361663206 23.934574468 Calling exit ...