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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 106 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 225.6 MB / 247.8 MB, free: 3.738 MB / 190.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.05541/0.05541, allocations: 9.229 MB / 311.9 MB, free: 1.809 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 68.03 kB / 434 MB, free: 11.24 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2287, allocations: 54.25 MB / 488.3 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.008414/0.2371, allocations: 10.53 MB / 498.8 MB, free: 17.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.242, allocations: 2.994 MB / 0.4901 GB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000772/0.2428, allocations: 42.91 kB / 0.4901 GB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007694/0.2436, allocations: 465.8 kB / 0.4905 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002413/0.246, allocations: 1.634 MB / 0.4921 GB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.2464, allocations: 223.2 kB / 0.4923 GB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00225/0.2486, allocations: 3.023 MB / 0.4953 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008888/0.2495, allocations: 1.008 MB / 0.4963 GB, free: 11.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009097/0.2504, allocations: 1.104 MB / 0.4974 GB, free: 10.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001376/0.2518, allocations: 1.675 MB / 0.499 GB, free: 9.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003607/0.2522, allocations: 276 kB / 0.4993 GB, free: 9.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.2534, allocations: 0.9159 MB / 0.5002 GB, free: 9.473 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008198/0.2542, allocations: 1.432 MB / 0.5016 GB, free: 8.605 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001051/0.2552, allocations: 1.864 MB / 0.5034 GB, free: 7.156 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004672/0.2599, allocations: 5.742 MB / 0.509 GB, free: 3.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2599, allocations: 0 / 0.509 GB, free: 3.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2599, allocations: 0 / 0.509 GB, free: 3.039 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001408/0.2601, allocations: 0 / 0.509 GB, free: 3.039 MB / 366.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.01225/0.2723, allocations: 5.835 MB / 0.5147 GB, free: 13.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.2724, allocations: 12.03 kB / 0.5147 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009092/0.2733, allocations: 0.6301 MB / 0.5153 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006606/0.2799, allocations: 1.859 MB / 0.5171 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.2833, allocations: 1.588 MB / 0.5187 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.2835, allocations: 188.6 kB / 0.5189 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004857/0.2839, allocations: 243.8 kB / 0.5191 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0149/0.2989, allocations: 9.307 MB / 0.5282 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.101e-05/0.2989, allocations: 35.77 kB / 0.5282 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/0.2992, allocations: 115.8 kB / 0.5283 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003257/0.3025, allocations: 2.075 MB / 0.5303 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/0.3202, allocations: 8.241 MB / 0.5384 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04563/0.3658, allocations: 29.98 MB / 0.5677 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007578/0.3734, allocations: 2.919 MB / 0.5705 GB, free: 2.625 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.3751, allocations: 1.042 MB / 0.5715 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00946/0.3846, allocations: 6.285 MB / 0.5777 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.3846, allocations: 55.81 kB / 0.5777 GB, free: 10.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 3.687e-06/0.3846, allocations: 0 / 0.5777 GB, free: 10.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=239): time 0.03112/0.4158, allocations: 12.35 MB / 0.5898 GB, free: 14.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01187/0.4276, allocations: 9.29 MB / 0.5989 GB, free: 4.301 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00512/0.4328, allocations: 3.089 MB / 0.6019 GB, free: 1.191 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003047/0.4331, allocations: 57.7 kB / 0.6019 GB, free: 1.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002023/0.4351, allocations: 2.525 MB / 0.6044 GB, free: 14.58 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.4361, allocations: 0.9067 MB / 0.6053 GB, free: 13.66 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001429/0.4375, allocations: 0.9973 MB / 0.6063 GB, free: 12.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4377, allocations: 309.1 kB / 0.6066 GB, free: 12.35 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/0.4405, allocations: 1.693 MB / 0.6082 GB, free: 10.65 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005201/0.4457, allocations: 4.316 MB / 0.6124 GB, free: 5.055 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2229/0.6686, allocations: 6.507 MB / 0.6188 GB, free: 112 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.913e-05/0.6687, allocations: 27.02 kB / 0.6188 GB, free: 112 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01308/0.6818, allocations: 6.621 MB / 0.6253 GB, free: 110.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.632e-05/0.6819, allocations: 43.66 kB / 0.6253 GB, free: 110.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/0.682, allocations: 91.33 kB / 0.6254 GB, free: 110.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.6838, allocations: 0.7237 MB / 0.6261 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003835/0.6876, allocations: 1.072 MB / 0.6272 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01288/0.7005, allocations: 13.61 MB / 0.6404 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.7042, allocations: 284.5 kB / 0.6407 GB, free: 99.97 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007162/0.7049, allocations: 304.7 kB / 0.641 GB, free: 99.93 MB / 478.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.003069/0.708, allocations: 1.786 MB / 0.6428 GB, free: 99.08 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000526/0.7085, allocations: 307.3 kB / 0.643 GB, free: 99.07 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005866/0.7144, allocations: 3.415 MB / 0.6464 GB, free: 97.81 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004624/0.719, allocations: 2.936 MB / 0.6492 GB, free: 96.81 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.719, allocations: 7.938 kB / 0.6493 GB, free: 96.81 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.719, allocations: 7.594 kB / 0.6493 GB, free: 96.81 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/0.7355, allocations: 10.47 MB / 0.6595 GB, free: 92.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.7355, allocations: 4.312 kB / 0.6595 GB, free: 92.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009547/0.7364, allocations: 277.5 kB / 0.6598 GB, free: 92.29 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.7381, allocations: 0.7828 MB / 0.6605 GB, free: 91.92 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/0.7383, allocations: 46.58 kB / 0.6606 GB, free: 91.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/0.7489, allocations: 13.49 MB / 0.6737 GB, free: 78.51 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004888/0.7538, allocations: 5.993 MB / 0.6796 GB, free: 72.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006193/0.76, allocations: 5.011 MB / 0.6845 GB, free: 67.15 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000844/0.7608, allocations: 368 kB / 0.6848 GB, free: 66.77 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/0.7612, allocations: 47.5 kB / 0.6849 GB, free: 66.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.7622, allocations: 111.9 kB / 0.685 GB, free: 66.62 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003131/0.7625, allocations: 161.7 kB / 0.6851 GB, free: 66.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.7626, allocations: 63.98 kB / 0.6852 GB, free: 66.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002577/0.7652, allocations: 1.976 MB / 0.6871 GB, free: 64.42 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.7652, allocations: 0 / 0.6871 GB, free: 64.42 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004832/0.77, allocations: 0.9865 MB / 0.6881 GB, free: 63.44 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.006333/0.7763, allocations: 5.683 MB / 0.6936 GB, free: 57.69 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006205/0.7826, allocations: 4.713 MB / 0.6983 GB, free: 52.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.7826, allocations: 0 / 0.6983 GB, free: 52.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.7849, allocations: 2.084 MB / 0.7003 GB, free: 50.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.7871, allocations: 472.5 kB / 0.7007 GB, free: 50.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04407/0.8312, allocations: 36.18 MB / 0.7361 GB, free: 10.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0031/0.8343, allocations: 2.957 MB / 0.739 GB, free: 7.379 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002887/0.8372, allocations: 1.378 MB / 0.7403 GB, free: 5.996 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/0.8392, allocations: 1.64 MB / 0.7419 GB, free: 4.355 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/0.8392, allocations: 0 / 0.7419 GB, free: 4.355 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1367/0.9759, allocations: 65.67 MB / 0.806 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.41/21.38, allocations: 4 kB / 0.806 GB, free: 2.953 MB / 0.5294 GB " [Timeout remaining time 638] (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: 23.948081960901618] Failed to read output from testmodel.py, exit status != 0: 21.522361260838807 21.545045663 21.280664047 Calling exit ...